mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Implement execute step mechanism for focused panel (no-changelog) (#16891)
Co-authored-by: Charlie Kolb <charlie@n8n.io> Co-authored-by: Milorad FIlipović <milorad@n8n.io>
This commit is contained in:
@@ -45,13 +45,17 @@ const props = withDefaults(
|
||||
label?: string;
|
||||
type?: ButtonType;
|
||||
size?: ButtonSize;
|
||||
icon?: IconName;
|
||||
square?: boolean;
|
||||
transparent?: boolean;
|
||||
hideIcon?: boolean;
|
||||
hideLabel?: boolean;
|
||||
tooltip?: string;
|
||||
}>(),
|
||||
{
|
||||
disabled: false,
|
||||
transparent: false,
|
||||
square: false,
|
||||
},
|
||||
);
|
||||
|
||||
@@ -189,6 +193,10 @@ const tooltipText = computed(() => {
|
||||
});
|
||||
|
||||
const buttonLabel = computed(() => {
|
||||
if (props.hideLabel) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (isListeningForEvents.value || isListeningForWorkflowEvents.value) {
|
||||
return i18n.baseText('ndv.execute.stopListening');
|
||||
}
|
||||
@@ -223,6 +231,7 @@ const isLoading = computed(
|
||||
);
|
||||
|
||||
const buttonIcon = computed((): IconName | undefined => {
|
||||
if (props.icon) return props.icon;
|
||||
if (shouldGenerateCode.value) return 'terminal';
|
||||
if (!isListeningForEvents.value && !props.hideIcon) return 'flask-conical';
|
||||
return undefined;
|
||||
@@ -387,6 +396,7 @@ async function onClick() {
|
||||
:type="type"
|
||||
:size="size"
|
||||
:icon="buttonIcon"
|
||||
:square="square"
|
||||
:transparent-background="transparent"
|
||||
:title="
|
||||
!isTriggerNode && !tooltipText ? i18n.baseText('ndv.execute.testNode.description') : ''
|
||||
|
||||
Reference in New Issue
Block a user