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