...
 
Commits (2)
......@@ -103,6 +103,13 @@
>
Error: You must upload a banner
</h1>
<h1
class="m-blog--edit--error"
i18n="@@M__COMMON__ERROR_GATEWAY_TIMEOUT"
*ngSwitchCase="'error:gateway-timeout'"
>
Error: Gateway Time-out
</h1>
<h1 class="m-blog--edit--error" *ngSwitchDefault>
Error: {{error}}
</h1>
......
......@@ -282,6 +282,7 @@ export class BlogEdit {
);
})
.catch(e => {
this.error = e;
this.canSave = true;
this.inProgress = false;
});
......
......@@ -69,7 +69,11 @@ export class Upload {
progress(100);
resolve(JSON.parse(this.response));
} else {
reject(this.response);
if (this.status === 504) {
reject('error:gateway-timeout');
} else {
reject(this.response);
}
}
};
xhr.onreadystatechange = function() {
......