use action from store instead of directly modifying state in components

This commit is contained in:
pa
2026-03-08 20:15:37 +09:00
parent 3d3ad27ca0
commit eeb5288027
13 changed files with 61 additions and 8 deletions

View File

@@ -1973,6 +1973,13 @@ export const useUserStore = defineStore('User', () => {
sendBoopDialog.value.visible = true;
}
/**
* @param {string} value
*/
function setUserDialogMemo(value) {
userDialog.value.memo = value;
}
/**
*
*/
@@ -2018,6 +2025,7 @@ export const useUserStore = defineStore('User', () => {
getCurrentUser,
handleConfig,
showSendBoopDialog,
setUserDialogMemo,
checkNote,
toggleSharedConnectionsOptOut,
toggleDiscordFriendsOptOut