Enable table scroll for locked tasks [SCI-7125] (#4375)

This commit is contained in:
artoscinote 2022-08-23 14:23:21 +02:00 committed by GitHub
parent 62a66f3431
commit 74b9101e6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
<template> <template>
<div class="step-table-container" :class="{ 'step-element--locked': locked }"> <div class="step-table-container">
<div class="step-element-header" :class="{ 'editing-name': editingName }"> <div class="step-element-header" :class="{ 'editing-name': editingName, 'step-element--locked': locked }">
<div v-if="reorderElementUrl" class="step-element-grip" @click="$emit('reorder')"> <div v-if="reorderElementUrl" class="step-element-grip" @click="$emit('reorder')">
<i class="fas fas-rotated-90 fa-exchange-alt"></i> <i class="fas fas-rotated-90 fa-exchange-alt"></i>
</div> </div>
@ -108,6 +108,10 @@
}, },
methods: { methods: {
enableTableEdit() { enableTableEdit() {
if(this.locked) {
return;
}
if (!this.element.attributes.orderable.name) { if (!this.element.attributes.orderable.name) {
this.openNameModal(); this.openNameModal();
return; return;