diff --git a/src/components/dialogs/AvatarDialog/AvatarDialog.vue b/src/components/dialogs/AvatarDialog/AvatarDialog.vue index 9d3f4b69..4ec6fe60 100644 --- a/src/components/dialogs/AvatarDialog/AvatarDialog.vue +++ b/src/components/dialogs/AvatarDialog/AvatarDialog.vue @@ -326,7 +326,7 @@ @@ -615,6 +615,7 @@ { value: 'JSON', label: t('dialog.avatar.json.header') } ]); + const avatarDialogActiveTab = ref('Info'); const avatarDialogLastActiveTab = ref('Info'); const changeAvatarImageDialogVisible = ref(false); const previousImageUrl = ref(''); @@ -686,6 +687,7 @@ ); function handleAvatarDialogTab(tabName) { + avatarDialogLastActiveTab.value = tabName; if (tabName === 'JSON') { refreshAvatarDialogTreeData(); } diff --git a/src/components/dialogs/GroupDialog/GroupDialog.vue b/src/components/dialogs/GroupDialog/GroupDialog.vue index a30dc078..5019f695 100644 --- a/src/components/dialogs/GroupDialog/GroupDialog.vue +++ b/src/components/dialogs/GroupDialog/GroupDialog.vue @@ -349,7 +349,7 @@ @@ -1289,6 +1289,7 @@ const { isDarkMode } = storeToRefs(useAppearanceSettingsStore()); + const groupDialogActiveTab = ref('Info'); const groupDialogLastActiveTab = ref('Info'); const isGroupMembersDone = ref(false); const isGroupMembersLoading = ref(false); @@ -1693,6 +1694,7 @@ } function handleGroupDialogTab(tabName) { + groupDialogLastActiveTab.value = tabName; if (tabName === 'Members') { getGroupDialogGroupMembers(); } else if (tabName === 'Photos') { diff --git a/src/components/dialogs/UserDialog/UserDialog.vue b/src/components/dialogs/UserDialog/UserDialog.vue index 77a6dd9b..7a0e95fd 100644 --- a/src/components/dialogs/UserDialog/UserDialog.vue +++ b/src/components/dialogs/UserDialog/UserDialog.vue @@ -19,7 +19,7 @@ :user-dialog-command="userDialogCommand" /> @@ -1515,6 +1515,7 @@ const userDialogGroupAllSelected = ref(false); const userDialogGroupEditSelectedGroupIds = ref([]); // selected groups in edit mode + const userDialogActiveTab = ref('Info'); const userDialogLastActiveTab = ref('Info'); const userDialogLastMutualFriends = ref(''); const userDialogLastGroup = ref(''); @@ -1636,6 +1637,7 @@ } function handleUserDialogTab(tabName) { + userDialogLastActiveTab.value = tabName; const userId = userDialog.value.id; if (tabName === 'Info') { if (vrchatCredit.value === null) { @@ -1643,6 +1645,7 @@ } } else if (tabName === 'mutual') { if (userId === currentUser.value.id) { + userDialogActiveTab.value = 'Info'; userDialogLastActiveTab.value = 'Info'; return; } diff --git a/src/components/dialogs/WorldDialog/WorldDialog.vue b/src/components/dialogs/WorldDialog/WorldDialog.vue index 9c76a0ed..67207b0d 100644 --- a/src/components/dialogs/WorldDialog/WorldDialog.vue +++ b/src/components/dialogs/WorldDialog/WorldDialog.vue @@ -317,7 +317,7 @@ @@ -921,6 +921,7 @@ return platforms.join(', '); }); + const worldDialogActiveTab = ref('Instances'); const worldDialogLastActiveTab = ref('Instances'); watch( @@ -934,6 +935,7 @@ ); function handleWorldDialogTab(tabName) { + worldDialogLastActiveTab.value = tabName; if (tabName === 'JSON') { refreshWorldDialogTreeData(); }