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:
Alex Grozav
2023-04-06 16:32:45 +03:00
committed by GitHub
parent 89c12fc1a7
commit 5651a52364
67 changed files with 347 additions and 210 deletions

View File

@@ -33,7 +33,6 @@
</template>
<script lang="ts">
import Vue from 'vue';
import mixins from 'vue-typed-mixins';
import { IN8nPromptResponse } from '@/Interface';
@@ -43,6 +42,7 @@ import Modal from './Modal.vue';
import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/settings';
import { useRootStore } from '@/stores/n8nRootStore';
import { createEventBus } from '@/event-bus';
export default mixins(workflowHelpers).extend({
components: { Modal },
@@ -51,7 +51,7 @@ export default mixins(workflowHelpers).extend({
data() {
return {
email: '',
modalBus: new Vue(),
modalBus: createEventBus(),
};
},
computed: {
@@ -100,7 +100,7 @@ export default mixins(workflowHelpers).extend({
type: 'success',
});
}
this.modalBus.$emit('close');
this.modalBus.emit('close');
}
},
},