This commit is contained in:
2021-12-23 20:07:00 +00:00
parent d46ef8863f
commit a22e1bcd72
2 changed files with 25 additions and 6 deletions

View File

@@ -111,14 +111,14 @@ export default {
if (res.error) {
this.reject(res);
} else {
//special handling for busy response meaning no render slots available at the server
//this is the error Ok(ApiOkResponse.Response(new { timeout = true, timeoutconfig = ServerBootConfig.AYANOVA_REPORT_RENDERING_TIMEOUT }));
// return Ok(ApiOkResponse.Response(new { timeout = true, timeoutconfig = ServerBootConfig.AYANOVA_REPORT_RENDERING_TIMEOUT }));
if (res.data && res.data.busy) {
//special handling for timeout response at the server
if (res.data && res.data.timeout) {
window.$gz.eventBus.$emit(
"notify-warning",
window.$gz.translation.get("ReportRenderTimeOut"),
`${this.$store.state.helpUrl}/ay-report-busy`
window.$gz.translation
.get("ReportRenderTimeOut")
.replace("{0}", res.data.timeoutconfigminutes),
`${this.$store.state.helpUrl}/ay-report-timeout`
);
} else {
//all ok show report