Fix 'upload' code style issues (tslint)

This commit is contained in:
Denys Vuika
2016-06-16 13:37:23 +01:00
parent 326e25d99e
commit 7f93baf59c
5 changed files with 8 additions and 11 deletions

View File

@@ -224,7 +224,7 @@ export class UploadButtonComponent {
messageTranslate = this.translate.get('FILE_UPLOAD.MESSAGES.PROGRESS');
actionTranslate = this.translate.get('FILE_UPLOAD.ACTION.UNDO');
if(this.undoNotificationBar.nativeElement.MaterialSnackbar) {
if (this.undoNotificationBar.nativeElement.MaterialSnackbar) {
this.undoNotificationBar.nativeElement.MaterialSnackbar.showSnackbar({
message: messageTranslate.value,
timeout: 3000,
@@ -244,7 +244,7 @@ export class UploadButtonComponent {
* @returns {string}
*/
private getErrorMessage(response: any): string {
if(response.body.error.statusCode === ERROR_FOLDER_ALREADY_EXIST ) {
if (response.body.error.statusCode === ERROR_FOLDER_ALREADY_EXIST ) {
let errorMessage: any;
errorMessage = this.translate.get('FILE_UPLOAD.MESSAGES.FOLDER_ALREADY_EXIST');
return errorMessage.value;