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