refactor(editor): Migrate ui.store to use composition API (no-changelog) (#9892)

This commit is contained in:
Ricardo Espinoza
2024-07-03 15:11:40 -04:00
committed by GitHub
parent 22990342df
commit f64ca621e1
42 changed files with 710 additions and 649 deletions

View File

@@ -1,6 +1,6 @@
<template>
<el-dialog
:model-value="uiStore.isModalOpen(name)"
:model-value="uiStore.modalsById[name].open"
:before-close="closeDialog"
:class="{
'dialog-wrapper': true,
@@ -169,7 +169,7 @@ export default defineComponent({
},
methods: {
onWindowKeydown(event: KeyboardEvent) {
if (!this.uiStore.isModalActive(this.name)) {
if (!this.uiStore.isModalActiveById[this.name]) {
return;
}
@@ -178,7 +178,7 @@ export default defineComponent({
}
},
handleEnter() {
if (this.uiStore.isModalActive(this.name)) {
if (this.uiStore.isModalActiveById[this.name]) {
this.$emit('enter');
}
},