diff --git a/ayanova/src/api/gzdialog.js b/ayanova/src/api/gzdialog.js index 220f10fa..44a4dfc5 100644 --- a/ayanova/src/api/gzdialog.js +++ b/ayanova/src/api/gzdialog.js @@ -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 diff --git a/ayanova/src/components/report-selector-control.vue b/ayanova/src/components/report-selector-control.vue index 7b9390d6..c4bcfb79 100644 --- a/ayanova/src/components/report-selector-control.vue +++ b/ayanova/src/components/report-selector-control.vue @@ -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 {