mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
only show add default categories button when really have no category
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<f7-list strong inset dividers class="margin-top" v-if="!loading && noAvailableCategory">
|
<f7-list strong inset dividers class="margin-top" v-if="!loading && noAvailableCategory">
|
||||||
<f7-list-item :title="$t('No available category')"></f7-list-item>
|
<f7-list-item :title="$t('No available category')"></f7-list-item>
|
||||||
<f7-list-button v-if="hasSubCategories"
|
<f7-list-button v-if="hasSubCategories && noCategory"
|
||||||
:title="$t('Add Default Categories')"
|
:title="$t('Add Default Categories')"
|
||||||
:href="'/category/preset?type=' + categoryType"></f7-list-button>
|
:href="'/category/preset?type=' + categoryType"></f7-list-button>
|
||||||
</f7-list>
|
</f7-list>
|
||||||
@@ -188,6 +188,9 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
},
|
||||||
|
noCategory() {
|
||||||
|
return this.categories.length < 1;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
Reference in New Issue
Block a user