mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 22:24:23 +08:00
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:
commit
f175c340ae
2 changed files with 2 additions and 2 deletions
|
@ -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')"
|
||||
|
|
|
@ -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')"
|
||||
|
|
Loading…
Add table
Reference in a new issue