mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 18:53:47 +02:00
use action from store instead of directly modifying state in components
This commit is contained in:
@@ -242,6 +242,13 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {boolean} value
|
||||
*/
|
||||
function setAvatarDialogLoading(value) {
|
||||
avatarDialog.value.loading = value;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {string} avatarId
|
||||
@@ -800,6 +807,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
||||
lookupAvatars,
|
||||
selectAvatarWithConfirmation,
|
||||
selectAvatarWithoutConfirmation,
|
||||
setAvatarDialogLoading,
|
||||
showAvatarAuthorDialog,
|
||||
addAvatarWearTime,
|
||||
preloadOwnAvatars
|
||||
|
||||
Reference in New Issue
Block a user