Unload unused tabs

This commit is contained in:
Natsumi
2024-12-21 07:53:42 +13:00
parent 992807a461
commit aa4ab56bf7
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
mixin friendLogTab() mixin friendLogTab()
.x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'friendLog'") .x-container(v-if="$refs.menu && $refs.menu.activeIndex === 'friendLog'")
data-tables(v-bind="friendLogTable" ref="friendLogTableRef") data-tables(v-bind="friendLogTable" ref="friendLogTableRef")
template(#tool) template(#tool)
div(style="margin:0 0 10px;display:flex;align-items:center") div(style="margin:0 0 10px;display:flex;align-items:center")
+1 -1
View File
@@ -1,5 +1,5 @@
mixin friendsListTab() mixin friendsListTab()
.x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'friendsList'") .x-container(v-if="$refs.menu && $refs.menu.activeIndex === 'friendsList'")
div.options-container(style="margin-top:0") div.options-container(style="margin-top:0")
span.header {{ $t('view.friend_list.header') }} span.header {{ $t('view.friend_list.header') }}
div(style="float:right;font-size:13px") div(style="float:right;font-size:13px")
+1 -1
View File
@@ -1,5 +1,5 @@
mixin moderationTab() mixin moderationTab()
.x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'moderation'") .x-container(v-if="$refs.menu && $refs.menu.activeIndex === 'moderation'")
data-tables(v-bind="playerModerationTable" ref="playerModerationTableRef" v-loading="API.isPlayerModerationsLoading") data-tables(v-bind="playerModerationTable" ref="playerModerationTableRef" v-loading="API.isPlayerModerationsLoading")
template(#tool) template(#tool)
div(style="margin:0 0 10px;display:flex;align-items:center") div(style="margin:0 0 10px;display:flex;align-items:center")
+1 -1
View File
@@ -1,5 +1,5 @@
mixin notificationsTab() mixin notificationsTab()
.x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'notification'" v-loading="API.isNotificationsLoading") .x-container(v-if="$refs.menu && $refs.menu.activeIndex === 'notification'" v-loading="API.isNotificationsLoading")
data-tables(v-bind="notificationTable" ref="notificationTableRef" class="notification-table") data-tables(v-bind="notificationTable" ref="notificationTableRef" class="notification-table")
template(#tool) template(#tool)
div(style="margin:0 0 10px;display:flex;align-items:center") div(style="margin:0 0 10px;display:flex;align-items:center")
+1 -1
View File
@@ -1,5 +1,5 @@
mixin profileTab() mixin profileTab()
.x-container(v-show="$refs.menu && $refs.menu.activeIndex === 'profile'") .x-container(v-if="$refs.menu && $refs.menu.activeIndex === 'profile'")
div.options-container(style="margin-top:0") div.options-container(style="margin-top:0")
span.header {{ $t('view.profile.profile.header') }} span.header {{ $t('view.profile.profile.header') }}
.x-friend-list(style="margin-top:10px") .x-friend-list(style="margin-top:10px")