mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
Revert "refactor(editor): Turn showMessage mixin to composable" (#6243)
Revert "refactor(editor): Turn showMessage mixin to composable (#6081)"
This reverts commit b95fcd7323.
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
import { VALID_EMAIL_REGEX, VALUE_SURVEY_MODAL_KEY } from '@/constants';
|
||||
import type { IN8nPromptResponse } from '@/Interface';
|
||||
|
||||
import ModalDrawer from '@/components/ModalDrawer.vue';
|
||||
import ModalDrawer from './ModalDrawer.vue';
|
||||
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { workflowHelpers } from '@/mixins/workflowHelpers';
|
||||
@@ -67,7 +67,6 @@ import { mapStores } from 'pinia';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { useRootStore } from '@/stores/n8nRoot.store';
|
||||
import { createEventBus } from '@/event-bus';
|
||||
import { useToast } from '@/composables';
|
||||
|
||||
const DEFAULT_TITLE = 'How likely are you to recommend n8n to a friend or colleague?';
|
||||
const GREAT_FEEDBACK_TITLE =
|
||||
@@ -81,11 +80,6 @@ export default mixins(workflowHelpers).extend({
|
||||
components: {
|
||||
ModalDrawer,
|
||||
},
|
||||
setup() {
|
||||
return {
|
||||
...useToast(),
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
isActive(isActive) {
|
||||
if (isActive) {
|
||||
@@ -170,7 +164,7 @@ export default mixins(workflowHelpers).extend({
|
||||
instance_id: this.rootStore.instanceId,
|
||||
email: this.form.email,
|
||||
});
|
||||
this.showMessage({
|
||||
this.$showMessage({
|
||||
title: 'Thanks for your feedback',
|
||||
message:
|
||||
'If you’d like to help even more, leave us a <a target="_blank" href="https://www.g2.com/products/n8n/reviews/start">review on G2</a>.',
|
||||
|
||||
Reference in New Issue
Block a user