Skip to content

Commit

Permalink
Merge pull request #764 from webitel/fix/create-flow-popup-cache
Browse files Browse the repository at this point in the history
fix: fields caching deleted form create-flow-popup.vue [WTEL-5054]
  • Loading branch information
dlohvinov authored Sep 5, 2024
2 parents 48ec281 + c41f15f commit 99fb74c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/modules/routing/modules/flow/components/create-flow-popup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ export default {
selected: {},
type: {},
typeOptions: Object.values(EngineRoutingSchemaType)
.filter((type) => type !== EngineRoutingSchemaType.Default)
.map((value) => ({
value,
locale: `objects.flow.type.${value}`,
})),
.filter((type) => type !== EngineRoutingSchemaType.Default)
.map((value) => ({
value,
locale: `objects.flow.type.${value}`,
})),
}),
computed: {
...mapState('appearance', {
theme: (state) => state.theme,
Expand Down Expand Up @@ -122,16 +123,20 @@ export default {
window.open(route.href, '_blank');
this.close();
},
close() {
this.$emit('close');
this.setBasicFields();
},
initializeFields() {
setBasicFields() {
[this.selected] = this.editorOptions;
[this.type] = this.typeOptions;
},
},
mounted() {
this.initializeFields();
this.setBasicFields();
},
};
</script>
Expand Down

0 comments on commit 99fb74c

Please sign in to comment.