Merge pull request #7796 from artoscinote/ma_SCI_10980

Don't show content toolbar if no inserts are available [SCI-10980]
This commit is contained in:
Martin Artnik 2024-08-13 13:37:41 +02:00 committed by GitHub
commit f175c340ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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')"