mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-04 22:06:06 +02:00
refactor: use setter functions for dialog visibility and favorite status in stores
This commit is contained in:
@@ -249,6 +249,20 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
||||
avatarDialog.value.loading = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
*/
|
||||
function setAvatarDialogVisible(value) {
|
||||
avatarDialog.value.visible = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
*/
|
||||
function setAvatarDialogIsFavorite(value) {
|
||||
avatarDialog.value.isFavorite = value;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {string} avatarId
|
||||
@@ -812,6 +826,8 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
||||
lookupAvatars,
|
||||
selectAvatarWithConfirmation,
|
||||
selectAvatarWithoutConfirmation,
|
||||
setAvatarDialogVisible,
|
||||
setAvatarDialogIsFavorite,
|
||||
setAvatarDialogLoading,
|
||||
showAvatarAuthorDialog,
|
||||
addAvatarWearTime,
|
||||
|
||||
Reference in New Issue
Block a user