mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-22 02:34:26 +08:00
hide change tag group display order button when there are fewer than two tag groups
This commit is contained in:
@@ -77,10 +77,11 @@
|
|||||||
v-if="activeTagGroupId && activeTagGroupId !== DEFAULT_TAG_GROUP_ID">
|
v-if="activeTagGroupId && activeTagGroupId !== DEFAULT_TAG_GROUP_ID">
|
||||||
<v-list-item-title>{{ tt('Delete Tag Group') }}</v-list-item-title>
|
<v-list-item-title>{{ tt('Delete Tag Group') }}</v-list-item-title>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-divider class="my-2"/>
|
<v-divider class="my-2" v-if="allTagGroupsWithDefault.length >= 2"/>
|
||||||
<v-list-item :prepend-icon="mdiSort"
|
<v-list-item :prepend-icon="mdiSort"
|
||||||
:disabled="!allTagGroupsWithDefault || allTagGroupsWithDefault.length < 2"
|
:disabled="!allTagGroupsWithDefault || allTagGroupsWithDefault.length < 2"
|
||||||
:title="tt('Change Group Display Order')"
|
:title="tt('Change Group Display Order')"
|
||||||
|
v-if="allTagGroupsWithDefault.length >= 2"
|
||||||
@click="showChangeGroupDisplayOrderDialog"></v-list-item>
|
@click="showChangeGroupDisplayOrderDialog"></v-list-item>
|
||||||
<v-divider class="my-2"/>
|
<v-divider class="my-2"/>
|
||||||
<v-list-item :prepend-icon="mdiEyeOutline"
|
<v-list-item :prepend-icon="mdiEyeOutline"
|
||||||
|
|||||||
@@ -191,7 +191,7 @@
|
|||||||
@click="removeTagGroup"
|
@click="removeTagGroup"
|
||||||
v-if="activeTagGroupId && activeTagGroupId !== DEFAULT_TAG_GROUP_ID">{{ tt('Delete Tag Group') }}</f7-actions-button>
|
v-if="activeTagGroupId && activeTagGroupId !== DEFAULT_TAG_GROUP_ID">{{ tt('Delete Tag Group') }}</f7-actions-button>
|
||||||
</f7-actions-group>
|
</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-button @click="changeTagGroupDisplayOrder">{{ tt('Change Group Display Order') }}</f7-actions-button>
|
||||||
</f7-actions-group>
|
</f7-actions-group>
|
||||||
<f7-actions-group>
|
<f7-actions-group>
|
||||||
|
|||||||
Reference in New Issue
Block a user