Don't show create item button if you don't have create permissions

Fixes #390
This commit is contained in:
rijkvanzanten
2020-09-21 18:41:18 -04:00
parent c7f06461a0
commit 5bba717e2d

View File

@@ -195,7 +195,7 @@
<v-info :title="$tc('item_count', 0)" :icon="currentCollection.icon" center>
{{ $t('no_items_copy') }}
<template #append>
<template #append v-if="createAllowed">
<v-button :to="`/collections/${collection}/+`">{{ $t('create_item') }}</v-button>
</template>
</v-info>