hide change tag group display order button when there are fewer than two tag groups

This commit is contained in:
MaysWind
2026-01-24 21:57:42 +08:00
parent f916fdff06
commit 9467335536
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -77,10 +77,11 @@
v-if="activeTagGroupId && activeTagGroupId !== DEFAULT_TAG_GROUP_ID">
<v-list-item-title>{{ tt('Delete Tag Group') }}</v-list-item-title>
</v-list-item>
<v-divider class="my-2"/>
<v-divider class="my-2" v-if="allTagGroupsWithDefault.length >= 2"/>
<v-list-item :prepend-icon="mdiSort"
:disabled="!allTagGroupsWithDefault || allTagGroupsWithDefault.length < 2"
:title="tt('Change Group Display Order')"
v-if="allTagGroupsWithDefault.length >= 2"
@click="showChangeGroupDisplayOrderDialog"></v-list-item>
<v-divider class="my-2"/>
<v-list-item :prepend-icon="mdiEyeOutline"
+1 -1
View File
@@ -191,7 +191,7 @@
@click="removeTagGroup"
v-if="activeTagGroupId && activeTagGroupId !== DEFAULT_TAG_GROUP_ID">{{ tt('Delete Tag Group') }}</f7-actions-button>
</f7-actions-group>
<f7-actions-group>
<f7-actions-group v-if="allTagGroupsWithDefault.length >= 2">
<f7-actions-button @click="changeTagGroupDisplayOrder">{{ tt('Change Group Display Order') }}</f7-actions-button>
</f7-actions-group>
<f7-actions-group>