mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +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:
@@ -106,12 +106,13 @@ import { EXECUTIONS_MODAL_KEY, WEBHOOK_NODE_TYPE, WORKFLOW_SETTINGS_MODAL_KEY }
|
||||
import type { INodeUi } from '@/Interface';
|
||||
import type { INodeTypeDescription } from 'n8n-workflow';
|
||||
import { getTriggerNodeServiceName } from '@/utils';
|
||||
import NodeExecuteButton from '@/components/NodeExecuteButton.vue';
|
||||
import NodeExecuteButton from './NodeExecuteButton.vue';
|
||||
import { workflowHelpers } from '@/mixins/workflowHelpers';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import CopyInput from '@/components/CopyInput.vue';
|
||||
import NodeIcon from '@/components/NodeIcon.vue';
|
||||
import CopyInput from './CopyInput.vue';
|
||||
import NodeIcon from './NodeIcon.vue';
|
||||
import { copyPaste } from '@/mixins/copyPaste';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useUIStore } from '@/stores/ui.store';
|
||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
@@ -121,7 +122,7 @@ import type { N8nInfoAccordion } from 'n8n-design-system';
|
||||
|
||||
type HelpRef = InstanceType<typeof N8nInfoAccordion>;
|
||||
|
||||
export default mixins(workflowHelpers, copyPaste).extend({
|
||||
export default mixins(workflowHelpers, copyPaste, showMessage).extend({
|
||||
name: 'TriggerPanel',
|
||||
components: {
|
||||
NodeExecuteButton,
|
||||
@@ -189,6 +190,18 @@ export default mixins(workflowHelpers, copyPaste).extend({
|
||||
|
||||
return this.getWebhookUrl(this.nodeType.webhooks[0], this.node, 'test');
|
||||
},
|
||||
webhookProdUrl(): string | undefined {
|
||||
if (
|
||||
!this.node ||
|
||||
!this.nodeType ||
|
||||
!this.nodeType.webhooks ||
|
||||
!this.nodeType.webhooks.length
|
||||
) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return this.getWebhookUrl(this.nodeType.webhooks[0], this.node, 'prod');
|
||||
},
|
||||
isWebhookBasedNode(): boolean {
|
||||
return Boolean(this.nodeType && this.nodeType.webhooks && this.nodeType.webhooks.length);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user