mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-08 12:56:27 +08:00
Hide rearrange button, if not enough elements in step [SCI-11440]
This commit is contained in:
parent
701bfd313e
commit
cd8857d83d
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@
|
||||||
},
|
},
|
||||||
actionsMenu() {
|
actionsMenu() {
|
||||||
let menu = [];
|
let menu = [];
|
||||||
if (this.urls.reorder_elements_url) {
|
if (this.urls.reorder_elements_url && this.elements.length > 1) {
|
||||||
menu = menu.concat([{
|
menu = menu.concat([{
|
||||||
text: this.i18n.t('protocols.steps.options_dropdown.rearrange'),
|
text: this.i18n.t('protocols.steps.options_dropdown.rearrange'),
|
||||||
emit: 'reorder',
|
emit: 'reorder',
|
||||||
|
|
Loading…
Add table
Reference in a new issue