refactor: use setter functions for dialog visibility and favorite status in stores

This commit is contained in:
pa
2026-03-08 20:58:33 +09:00
parent ae0152c28e
commit c55d5f0ec7
19 changed files with 376 additions and 102 deletions
+17 -1
View File
@@ -56,6 +56,20 @@ export const useSearchStore = defineStore('Search', () => {
searchUserResults.value = [];
}
/**
* @param {string} value
*/
function setSearchText(value) {
searchText.value = value;
}
/**
* @param {Array} value
*/
function setQuickSearchItems(value) {
quickSearchItems.value = value;
}
async function searchUserByDisplayName(displayName) {
const params = {
n: 10,
@@ -426,6 +440,8 @@ export const useSearchStore = defineStore('Search', () => {
directAccessParse,
directAccessPaste,
directAccessWorld,
verifyShortName
verifyShortName,
setSearchText,
setQuickSearchItems
};
});