fix workflow rename bug

This commit is contained in:
Mutasem 2022-03-29 08:12:47 +02:00
parent 865b795733
commit 58af5f7381
2 changed files with 6 additions and 6 deletions

View file

@ -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>

View file

@ -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;