disable the sort button when fewer than two items are present
This commit is contained in:
@@ -83,15 +83,15 @@
|
||||
:title="tt('Change Group Display Order')"
|
||||
v-if="allTagGroupsWithDefault.length >= 2"
|
||||
@click="showChangeGroupDisplayOrderDialog"></v-list-item>
|
||||
<v-divider class="my-2" v-if="tags.length > 1"/>
|
||||
<v-divider class="my-2"/>
|
||||
<v-list-item :prepend-icon="mdiSortAlphabeticalAscending"
|
||||
:disabled="!tags || tags.length < 2"
|
||||
:title="tt('Sort by Name (A to Z)')"
|
||||
@click="sortByName(false)"
|
||||
v-if="tags.length > 1"></v-list-item>
|
||||
@click="sortByName(false)"></v-list-item>
|
||||
<v-list-item :prepend-icon="mdiSortAlphabeticalDescending"
|
||||
:disabled="!tags || tags.length < 2"
|
||||
:title="tt('Sort by Name (Z to A)')"
|
||||
@click="sortByName(true)"
|
||||
v-if="tags.length > 1"></v-list-item>
|
||||
@click="sortByName(true)"></v-list-item>
|
||||
<v-divider class="my-2"/>
|
||||
<v-list-item :prepend-icon="mdiEyeOutline"
|
||||
:title="tt('Show Hidden Transaction Tags')"
|
||||
|
||||
Reference in New Issue
Block a user