Hide blank table name if task is locked [SCI-7066] (#4333)

This commit is contained in:
artoscinote 2022-08-10 10:38:10 +02:00 committed by GitHub
parent 3a26b62bf5
commit 04a282b725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
},