mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
fix workflow rename bug
This commit is contained in:
parent
865b795733
commit
58af5f7381
|
@ -17,7 +17,11 @@
|
|||
</div>
|
||||
</div>
|
||||
<span :class="$style.title" slot="reference">
|
||||
<WorkflowNameShort :name="value" :limit="40" />
|
||||
<WorkflowNameShort :name="value" :limit="40">
|
||||
<template v-slot="{ shortenedName }">
|
||||
{{ shortenedName }}
|
||||
</template>
|
||||
</WorkflowNameShort>
|
||||
<font-awesome-icon :class="$style.editIcon" icon="pencil-alt" />
|
||||
</span>
|
||||
</el-popover>
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<template>
|
||||
<span :title="name">
|
||||
<slot v-if="hasDefaultSlot" :shortenedName="shortenedName"></slot>
|
||||
{{ shortenedName }}
|
||||
<slot :shortenedName="shortenedName"></slot>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
|
@ -15,9 +14,6 @@ export default Vue.extend({
|
|||
name: "WorkflowNameShort",
|
||||
props: ["name", "limit"],
|
||||
computed: {
|
||||
hasDefaultSlot(): boolean {
|
||||
return !!this.$slots.default;
|
||||
},
|
||||
shortenedName(): string {
|
||||
const name = this.$props.name;
|
||||
|
||||
|
|
Loading…
Reference in a new issue