mirror of
https://github.com/directus/directus.git
synced 2026-02-04 22:15:06 -05:00
Don't show create item button if you don't have create permissions
Fixes #390
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user