mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Hide blank table name if task is locked [SCI-7066] (#4333)
This commit is contained in:
parent
3a26b62bf5
commit
04a282b725
1 changed files with 7 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
|||
<template>
|
||||
<div class="step-table-container" :class="{ 'step-element--locked': !element.attributes.orderable.urls.update_url }">
|
||||
<div class="step-table-container" :class="{ 'step-element--locked': locked }">
|
||||
<div class="step-element-header" :class="{ 'editing-name': editingName }">
|
||||
<div v-if="reorderElementUrl" class="step-element-grip" @click="$emit('reorder')">
|
||||
<i class="fas fas-rotated-90 fa-exchange-alt"></i>
|
||||
</div>
|
||||
<div v-else class="step-element-grip-placeholder"></div>
|
||||
<div class="step-element-name">
|
||||
<div v-if="!locked || element.attributes.orderable.name" class="step-element-name">
|
||||
<InlineEdit
|
||||
:value="element.attributes.orderable.name"
|
||||
:characterLimit="255"
|
||||
|
@ -86,6 +86,11 @@
|
|||
tableObject: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
locked() {
|
||||
return !this.element.attributes.orderable.urls.update_url
|
||||
}
|
||||
},
|
||||
updated() {
|
||||
this.loadTableData();
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue