mirror of
https://github.com/frappe/books.git
synced 2024-09-20 11:29:00 +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" />
|
<img src="@/assets/img/list-empty-state.svg" alt="" class="w-24" />
|
||||||
<p class="my-3 text-gray-800">{{ t`No entries found` }}</p>
|
<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` }}
|
{{ t`Make Entry` }}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
@ -101,7 +101,7 @@ import ListCell from './ListCell';
|
|||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'List',
|
name: 'List',
|
||||||
props: { listConfig: Object, filters: Object, schemaName: String },
|
props: { listConfig: Object, filters: Object, schemaName: String, canCreate: Boolean },
|
||||||
emits: ['openDoc', 'makeNewDoc', 'updatedData'],
|
emits: ['openDoc', 'makeNewDoc', 'updatedData'],
|
||||||
components: {
|
components: {
|
||||||
Row,
|
Row,
|
||||||
|
Loading…
Reference in New Issue
Block a user