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