This commit is contained in:
2021-12-23 21:49:54 +00:00
parent 593dcb576b
commit 30e7df823d
2 changed files with 21 additions and 2 deletions

View File

@@ -162,6 +162,24 @@ export default {
noButtonText: window.$gz.translation.get("Cancel"),
type: ttype
});
},
/////////////////////////////////////
// Custom confirmation no translation
// with all options available
//
displayNoTranslationModalNotificationMessage(
tKeyText,
tKeyTitle = undefined,
ttype = "info",
tHelpUrl = undefined
) {
return VM_LOCAL.$root.$gzconfirm({
message: tKeyText,
title: tKeyTitle,
yesButtonText: window.$gz.translation.get("OK"),
type: ttype,
helpUrl: tHelpUrl
});
}
//new functions above here

View File

@@ -113,11 +113,12 @@ export default {
} else {
//special handling for timeout response at the server
if (res.data && res.data.timeout) {
window.$gz.eventBus.$emit(
"notify-warning",
await window.$gz.dialog.displayNoTranslationModalNotificationMessage(
window.$gz.translation
.get("ReportRenderTimeOut")
.replace("{0}", res.data.timeoutconfigminutes),
null,
"error",
`${this.$store.state.helpUrl}/ay-report-timeout`
);
} else {