fix executions bug

This commit is contained in:
Mutasem 2022-04-06 14:10:51 +02:00
parent 2f4cda1e63
commit 6ca06cd184
2 changed files with 7 additions and 3 deletions

View file

@ -2,7 +2,7 @@
<div class="node-settings" @keydown.stop> <div class="node-settings" @keydown.stop>
<div :class="$style.header"> <div :class="$style.header">
<div class="header-side-menu"> <div class="header-side-menu">
<NodeTitle class="node-name" :value="node.name" :nodeType="nodeType" @input="nameChanged"></NodeTitle> <NodeTitle class="node-name" :value="node.name" :nodeType="nodeType" @input="nameChanged" :readOnly="isReadOnly"></NodeTitle>
<div <div
v-if="!isReadOnly" v-if="!isReadOnly"
> >

View file

@ -1,7 +1,7 @@
<template> <template>
<span :class="$style.container" @click="onEdit"> <span :class="$style.container" @click="onEdit">
<span :class="$style.iconWrapper"><NodeIcon :nodeType="nodeType" :size="18" /></span> <span :class="$style.iconWrapper"><NodeIcon :nodeType="nodeType" :size="18" /></span>
<el-popover placement="right" width="200" :value="editName"> <el-popover placement="right" width="200" :value="editName" :disabled="readOnly">
<div <div
:class="$style.editContainer" :class="$style.editContainer"
@keydown.enter="onRename" @keydown.enter="onRename"
@ -22,7 +22,7 @@
{{ shortenedName }} {{ shortenedName }}
</template> </template>
</ShortenName> </ShortenName>
<font-awesome-icon :class="$style.editIcon" icon="pencil-alt" /> <font-awesome-icon :class="$style.editIcon" icon="pencil-alt" v-if="!readOnly" />
</span> </span>
</el-popover> </el-popover>
</span> </span>
@ -40,6 +40,10 @@ export default Vue.extend({
type: String, type: String,
}, },
nodeType: {}, nodeType: {},
readOnly: {
type: Boolean,
default: false,
},
}, },
data() { data() {
return { return {