mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
* refactor(editor): Turn showMessage mixin to composable (#6081) * refactor(editor): move $getExecutionError from showMessages mixin to pushConnection (it is used there only) * refactor(editor): resolve showMessage mixin methods * fix(editor): use composable instead of mixin * fix(editor): resolve conflicts * fix(editor): replace clearAllStickyNotifications * fix(editor): replace confirmMessage * fix(editor): replace confirmMessage * fix(editor): replace confirmMessage * fix(editor): remove last confirmMessage usage * fix(editor): remove $prompt usage * fix(editor): remove $show methods * fix(editor): lint fix * fix(editor): lint fix * fix(editor): fixes after review * fix(editor): Fix external hook call in App * fix(editor): mixins & composables * fix: add pushConnection setup composables to components as well * fix(editor): mixins & composables * fix(editor): mixins & composables * fix: add void on non-await async calls * fix: fix close without connecting confirmation * fix: remove .only --------- Co-authored-by: Alex Grozav <alex@grozav.com>
This commit is contained in:
@@ -379,7 +379,6 @@ import HtmlEditor from '@/components/HtmlEditor/HtmlEditor.vue';
|
||||
import SqlEditor from '@/components/SqlEditor/SqlEditor.vue';
|
||||
import { externalHooks } from '@/mixins/externalHooks';
|
||||
import { nodeHelpers } from '@/mixins/nodeHelpers';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
import { workflowHelpers } from '@/mixins/workflowHelpers';
|
||||
import { hasExpressionMapping, isValueExpression, isResourceLocatorValue } from '@/utils';
|
||||
|
||||
@@ -397,13 +396,7 @@ import Vue from 'vue';
|
||||
|
||||
type ResourceLocatorRef = InstanceType<typeof ResourceLocator>;
|
||||
|
||||
export default mixins(
|
||||
externalHooks,
|
||||
nodeHelpers,
|
||||
showMessage,
|
||||
workflowHelpers,
|
||||
debounceHelper,
|
||||
).extend({
|
||||
export default mixins(externalHooks, nodeHelpers, workflowHelpers, debounceHelper).extend({
|
||||
name: 'parameter-input',
|
||||
components: {
|
||||
CodeNodeEditor,
|
||||
@@ -836,7 +829,7 @@ export default mixins(
|
||||
this.updateNodeCredentialIssues(node);
|
||||
}
|
||||
|
||||
this.$externalHooks().run('nodeSettings.credentialSelected', { updateInformation });
|
||||
void this.$externalHooks().run('nodeSettings.credentialSelected', { updateInformation });
|
||||
},
|
||||
/**
|
||||
* Check whether a param value must be skipped when collecting node param issues for validation.
|
||||
@@ -1132,7 +1125,7 @@ export default mixins(
|
||||
had_parameter: typeof prevValue === 'string' && prevValue.includes('$parameter'),
|
||||
};
|
||||
this.$telemetry.track('User switched parameter mode', telemetryPayload);
|
||||
this.$externalHooks().run('parameterInput.modeSwitch', telemetryPayload);
|
||||
void this.$externalHooks().run('parameterInput.modeSwitch', telemetryPayload);
|
||||
}
|
||||
},
|
||||
},
|
||||
@@ -1141,7 +1134,7 @@ export default mixins(
|
||||
const remoteParameterOptions = this.$el.querySelectorAll('.remote-parameter-option');
|
||||
|
||||
if (remoteParameterOptions.length > 0) {
|
||||
this.$externalHooks().run('parameterInput.updated', { remoteParameterOptions });
|
||||
void this.$externalHooks().run('parameterInput.updated', { remoteParameterOptions });
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -1181,7 +1174,7 @@ export default mixins(
|
||||
);
|
||||
}
|
||||
|
||||
this.$externalHooks().run('parameterInput.mount', {
|
||||
void this.$externalHooks().run('parameterInput.mount', {
|
||||
parameter: this.parameter,
|
||||
inputFieldRef: this.$refs['inputField'],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user