mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
hide Make Entry
if can not create
This commit is contained in:
parent
ba7f80eeeb
commit
a956d74679
@ -82,7 +82,7 @@
|
||||
>
|
||||
<img src="@/assets/img/list-empty-state.svg" alt="" class="w-24" />
|
||||
<p class="my-3 text-gray-800">{{ t`No entries found` }}</p>
|
||||
<Button type="primary" class="text-white" @click="$emit('makeNewDoc')">
|
||||
<Button type="primary" class="text-white" @click="$emit('makeNewDoc')" v-if="canCreate">
|
||||
{{ t`Make Entry` }}
|
||||
</Button>
|
||||
</div>
|
||||
@ -101,7 +101,7 @@ import ListCell from './ListCell';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'List',
|
||||
props: { listConfig: Object, filters: Object, schemaName: String },
|
||||
props: { listConfig: Object, filters: Object, schemaName: String, canCreate: Boolean },
|
||||
emits: ['openDoc', 'makeNewDoc', 'updatedData'],
|
||||
components: {
|
||||
Row,
|
||||
|
Loading…
Reference in New Issue
Block a user