feat: Add dangerouslyUseHTMLString where needed (no-changelog) (#6292)

feat: add dangerouslyUseHTMLString where needed (no-changelog)
This commit is contained in:
Alex Grozav 2023-05-22 16:09:29 +03:00 committed by GitHub
parent f5950b201c
commit 2d90125c87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 0 deletions

View file

@ -100,6 +100,7 @@ export default defineComponent({
message: this.$locale.baseText('startupError.message'),
type: 'error',
duration: 0,
dangerouslyUseHTMLString: true,
});
throw e;

View file

@ -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();

View file

@ -132,6 +132,7 @@ export default defineComponent({
message: errorMessage,
type: 'warning',
duration: 0,
dangerouslyUseHTMLString: true,
});
},
},

View file

@ -391,6 +391,7 @@ export default defineComponent({
cancelButtonText: this.$locale.baseText(
'workflows.shareModal.list.delete.confirm.cancelButtonText',
),
dangerouslyUseHTMLString: true,
},
);

View file

@ -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;

View file

@ -57,6 +57,7 @@ export const genericHelpers = defineComponent({
message: this.$locale.baseText('genericHelpers.showMessage.message'),
type: 'info',
duration: 0,
dangerouslyUseHTMLString: true,
});
return false;

View file

@ -438,6 +438,7 @@ export const pushConnection = defineComponent({
message: runDataExecutedErrorMessage,
type: 'error',
duration: 0,
dangerouslyUseHTMLString: true,
});
}
} else {

View file

@ -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',
),

View file

@ -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,
},
);

View file

@ -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'),
},