mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 15:44:06 -08:00
feat: Add dangerouslyUseHTMLString where needed (no-changelog) (#6292)
feat: add dangerouslyUseHTMLString where needed (no-changelog)
This commit is contained in:
parent
f5950b201c
commit
2d90125c87
|
@ -100,6 +100,7 @@ export default defineComponent({
|
||||||
message: this.$locale.baseText('startupError.message'),
|
message: this.$locale.baseText('startupError.message'),
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: 0,
|
duration: 0,
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
throw e;
|
throw e;
|
||||||
|
|
|
@ -302,6 +302,7 @@ export default defineComponent({
|
||||||
title: this.$locale.baseText('dataMapping.success.title'),
|
title: this.$locale.baseText('dataMapping.success.title'),
|
||||||
message: this.$locale.baseText('dataMapping.success.moreInfo'),
|
message: this.$locale.baseText('dataMapping.success.moreInfo'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.ndvStore.disableMappingHint();
|
this.ndvStore.disableMappingHint();
|
||||||
|
|
|
@ -132,6 +132,7 @@ export default defineComponent({
|
||||||
message: errorMessage,
|
message: errorMessage,
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
duration: 0,
|
duration: 0,
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -391,6 +391,7 @@ export default defineComponent({
|
||||||
cancelButtonText: this.$locale.baseText(
|
cancelButtonText: this.$locale.baseText(
|
||||||
'workflows.shareModal.list.delete.confirm.cancelButtonText',
|
'workflows.shareModal.list.delete.confirm.cancelButtonText',
|
||||||
),
|
),
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,7 @@ export function useToast() {
|
||||||
customClass?: string;
|
customClass?: string;
|
||||||
closeOnClick?: boolean;
|
closeOnClick?: boolean;
|
||||||
type?: MessageType;
|
type?: MessageType;
|
||||||
|
dangerouslyUseHTMLString?: boolean;
|
||||||
}) {
|
}) {
|
||||||
// eslint-disable-next-line prefer-const
|
// eslint-disable-next-line prefer-const
|
||||||
let notification: ElNotificationComponent;
|
let notification: ElNotificationComponent;
|
||||||
|
@ -80,6 +81,7 @@ export function useToast() {
|
||||||
duration: config.duration,
|
duration: config.duration,
|
||||||
customClass: config.customClass,
|
customClass: config.customClass,
|
||||||
type: config.type,
|
type: config.type,
|
||||||
|
dangerouslyUseHTMLString: config.dangerouslyUseHTMLString ?? true,
|
||||||
});
|
});
|
||||||
|
|
||||||
return notification;
|
return notification;
|
||||||
|
|
|
@ -57,6 +57,7 @@ export const genericHelpers = defineComponent({
|
||||||
message: this.$locale.baseText('genericHelpers.showMessage.message'),
|
message: this.$locale.baseText('genericHelpers.showMessage.message'),
|
||||||
type: 'info',
|
type: 'info',
|
||||||
duration: 0,
|
duration: 0,
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -438,6 +438,7 @@ export const pushConnection = defineComponent({
|
||||||
message: runDataExecutedErrorMessage,
|
message: runDataExecutedErrorMessage,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: 0,
|
duration: 0,
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -757,6 +757,7 @@ export const workflowHelpers = defineComponent({
|
||||||
}),
|
}),
|
||||||
this.$locale.baseText('workflows.concurrentChanges.confirmMessage.title'),
|
this.$locale.baseText('workflows.concurrentChanges.confirmMessage.title'),
|
||||||
{
|
{
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
confirmButtonText: this.$locale.baseText(
|
confirmButtonText: this.$locale.baseText(
|
||||||
'workflows.concurrentChanges.confirmMessage.confirmButtonText',
|
'workflows.concurrentChanges.confirmMessage.confirmButtonText',
|
||||||
),
|
),
|
||||||
|
|
|
@ -676,6 +676,7 @@ export default defineComponent({
|
||||||
// Close the creator panel if user clicked on the link
|
// Close the creator panel if user clicked on the link
|
||||||
if (this.createNodeActive) notice.close();
|
if (this.createNodeActive) notice.close();
|
||||||
}, 0),
|
}, 0),
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
clearExecutionData() {
|
clearExecutionData() {
|
||||||
|
@ -1449,6 +1450,7 @@ export default defineComponent({
|
||||||
cancelButtonText: this.$locale.baseText(
|
cancelButtonText: this.$locale.baseText(
|
||||||
'nodeView.confirmMessage.receivedCopyPasteData.cancelButtonText',
|
'nodeView.confirmMessage.receivedCopyPasteData.cancelButtonText',
|
||||||
),
|
),
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -140,6 +140,7 @@ export default defineComponent({
|
||||||
}),
|
}),
|
||||||
this.$locale.baseText('auth.setup.confirmOwnerSetup'),
|
this.$locale.baseText('auth.setup.confirmOwnerSetup'),
|
||||||
{
|
{
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
confirmButtonText: this.$locale.baseText('auth.setup.createAccount'),
|
confirmButtonText: this.$locale.baseText('auth.setup.createAccount'),
|
||||||
cancelButtonText: this.$locale.baseText('auth.setup.goBack'),
|
cancelButtonText: this.$locale.baseText('auth.setup.goBack'),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue