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'), message: this.$locale.baseText('startupError.message'),
type: 'error', type: 'error',
duration: 0, duration: 0,
dangerouslyUseHTMLString: true,
}); });
throw e; throw e;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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