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"), noButtonText: window.$gz.translation.get("Cancel"),
type: ttype 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 //new functions above here

View File

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