mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA] Upload - 500 error message (#419)
* 500 error message * generic error message
This commit is contained in:
committed by
Denys Vuika
parent
13bfd118d6
commit
be8edcc9d6
@@ -191,12 +191,18 @@ export abstract class PageComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
onFileUploadedError(error: FileUploadErrorEvent) {
|
||||
let message = null;
|
||||
let message = 'APP.MESSAGES.UPLOAD.ERROR.GENERIC';
|
||||
|
||||
if (error.error.status === 409) {
|
||||
message = new SnackbarErrorAction('VERSION.MESSAGE.ERROR.CONFLICT');
|
||||
message = 'APP.MESSAGES.UPLOAD.ERROR.CONFLICT';
|
||||
}
|
||||
|
||||
this.store.dispatch(message);
|
||||
if (error.error.status === 500) {
|
||||
message = 'APP.MESSAGES.UPLOAD.ERROR.500';
|
||||
}
|
||||
|
||||
const action = new SnackbarErrorAction(message);
|
||||
|
||||
this.store.dispatch(action);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user