quick-open.js (545B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ 4 5 export function setQuickOpenQuery(query) { 6 return { 7 type: "SET_QUICK_OPEN_QUERY", 8 query, 9 }; 10 } 11 12 export function openQuickOpen(query) { 13 if (query != null) { 14 return { type: "OPEN_QUICK_OPEN", query }; 15 } 16 return { type: "OPEN_QUICK_OPEN" }; 17 } 18 19 export function closeQuickOpen() { 20 return { type: "CLOSE_QUICK_OPEN" }; 21 }