feat: Replace new Vue() with custom event bus (no-changelog) (#5780)
* refactor: replace new Vue() with custom event bus (no-changelog) * fix: export types from design system main * fix: update component types * fix: update form inputs event bus
This commit is contained in:
@@ -60,6 +60,7 @@ import { ABOUT_MODAL_KEY } from '../constants';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useSettingsStore } from '@/stores/settings';
|
||||
import { useRootStore } from '@/stores/n8nRootStore';
|
||||
import { createEventBus } from '@/event-bus';
|
||||
|
||||
export default Vue.extend({
|
||||
name: 'About',
|
||||
@@ -69,7 +70,7 @@ export default Vue.extend({
|
||||
data() {
|
||||
return {
|
||||
ABOUT_MODAL_KEY,
|
||||
modalBus: new Vue(),
|
||||
modalBus: createEventBus(),
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -77,7 +78,7 @@ export default Vue.extend({
|
||||
},
|
||||
methods: {
|
||||
closeDialog() {
|
||||
this.modalBus.$emit('close');
|
||||
this.modalBus.emit('close');
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user