Don't show content toolbar if no inserts are available [SCI-10980]

This commit is contained in:
Martin Artnik 2024-08-13 13:24:37 +02:00
parent ce4f79e645
commit 2370cfaf15
2 changed files with 2 additions and 2 deletions

View file

@ -146,7 +146,7 @@
@attachment:viewMode="updateAttachmentViewMode"/>
</div>
<ContentToolbar
v-if="orderedElements.length > 2"
v-if="orderedElements.length > 2 && insertMenu.length > 0"
:insertMenu="insertMenu"
@create:table="(...args) => this.createElement('table', ...args)"
@create:checklist="createElement('checklist')"

View file

@ -131,7 +131,7 @@
@attachments:viewMode="changeAttachmentsViewMode"
@attachment:viewMode="updateAttachmentViewMode"/>
<ContentToolbar
v-if="orderedElements.length > 2"
v-if="orderedElements.length > 2 && insertMenu.length > 0"
:insertMenu="insertMenu"
@create:table="(...args) => this.createElement('table', ...args)"
@create:text="createElement('text')"