Fix opening last active tab

This commit is contained in:
Natsumi
2026-01-22 16:18:07 +13:00
parent 98fbadae2f
commit a1f4a22609
8 changed files with 34 additions and 32 deletions

View File

@@ -1237,7 +1237,6 @@
const { isDarkMode } = storeToRefs(useAppearanceSettingsStore());
const groupDialogActiveTab = ref('Info');
const groupDialogLastActiveTab = ref('Info');
const isGroupMembersDone = ref(false);
const isGroupMembersLoading = ref(false);
const groupDialogGalleryCurrentName = ref('0');
@@ -1631,7 +1630,8 @@
}
function handleGroupDialogTab(tabName) {
groupDialogLastActiveTab.value = tabName;
groupDialogActiveTab.value = tabName;
groupDialog.value.lastActiveTab = tabName;
if (tabName === 'Members') {
getGroupDialogGroupMembers();
} else if (tabName === 'Photos') {
@@ -1642,7 +1642,7 @@
}
function loadLastActiveTab() {
handleGroupDialogTab(groupDialogLastActiveTab.value);
handleGroupDialogTab(groupDialog.value.lastActiveTab);
}
function groupDialogTabClick(tabName) {