mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
@@ -12,19 +12,19 @@
|
||||
"url": "https://github.com/Alfresco/alfresco-ng2-components/issues"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@angular/animations": ">=5.1.1",
|
||||
"@angular/cdk": ">=5.1.1",
|
||||
"@angular/common": ">=5.1.1",
|
||||
"@angular/compiler": ">=5.1.1",
|
||||
"@angular/core": ">=5.1.1",
|
||||
"@angular/flex-layout": ">=6.0.0-beta.18",
|
||||
"@angular/forms": ">=5.1.1",
|
||||
"@angular/http": ">=5.1.1",
|
||||
"@angular/material": ">=5.1.1",
|
||||
"@angular/material-moment-adapter": ">=5.1.1",
|
||||
"@angular/platform-browser": ">=5.1.1",
|
||||
"@angular/platform-browser-dynamic": ">=5.1.1",
|
||||
"@angular/router": ">=5.1.1",
|
||||
"@angular/animations": ">=7.0.3",
|
||||
"@angular/cdk": ">=7.0.3",
|
||||
"@angular/common": ">=7.0.3",
|
||||
"@angular/compiler": ">=7.0.3",
|
||||
"@angular/core": ">=7.0.3",
|
||||
"@angular/flex-layout": ">=7.0.0-beta.19",
|
||||
"@angular/forms": ">=7.0.3",
|
||||
"@angular/http": ">=7.0.3",
|
||||
"@angular/material": ">=7.0.3",
|
||||
"@angular/material-moment-adapter": ">=7.0.3",
|
||||
"@angular/platform-browser": ">=7.0.3",
|
||||
"@angular/platform-browser-dynamic": ">=7.0.3",
|
||||
"@angular/router": ">=7.0.3",
|
||||
"alfresco-js-api": ">=2.7.0-beta5",
|
||||
"rxjs": ">=6.2.2",
|
||||
"@alfresco/adf-core": ">=2.7.0-beta5",
|
||||
|
@@ -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