This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user