mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
@@ -71,10 +71,8 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
*ngIf="file.status === FileUploadStatus.Cancelled ||
|
||||
file.status === FileUploadStatus.Aborted ||
|
||||
file.status === FileUploadStatus.Deleted"
|
||||
*ngIf="showCancelledStatus()"
|
||||
class="adf-file-uploading-row__block adf-file-uploading-row__status--cancelled">
|
||||
{{ 'ADF_FILE_UPLOAD.STATUS.FILE_CANCELED_STATUS' | translate }}
|
||||
</div>
|
||||
<div>
|
||||
</div>
|
||||
|
@@ -21,7 +21,7 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
@Component({
|
||||
selector: 'adf-file-uploading-list-row',
|
||||
templateUrl: './file-uploading-list-row.component.html',
|
||||
styleUrls: [ './file-uploading-list-row.component.scss' ]
|
||||
styleUrls: ['./file-uploading-list-row.component.scss']
|
||||
})
|
||||
export class FileUploadingListRowComponent {
|
||||
@Input()
|
||||
@@ -42,4 +42,10 @@ export class FileUploadingListRowComponent {
|
||||
onRemove(file: FileModel): void {
|
||||
this.remove.emit(file);
|
||||
}
|
||||
|
||||
showCancelledStatus(): boolean {
|
||||
return this.file.status === FileUploadStatus.Cancelled ||
|
||||
this.file.status === FileUploadStatus.Aborted ||
|
||||
this.file.status === FileUploadStatus.Deleted;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user