ecosystem/shared/upload-archive.component.ts
| selector | c8y-upload-archive |
| imports |
DropAreaComponent
C8yTranslatePipe
AsyncPipe
|
| templateUrl | upload-archive.component.html |
Properties |
Methods |
|
Inputs |
Outputs |
Accessors |
constructor(ecosystemService: EcosystemService, alertService: AlertService)
|
|||||||||
|
Parameters :
|
| application |
Type : IApplication
|
| preUploadCallback |
Type : function
|
| uploadNewVersion |
Type : boolean
|
Default value : false
|
| applicationChange |
Type : EventEmitter<IApplication>
|
| refresh |
Type : EventEmitter<any>
|
| Async onFileDroppedEvent | ||||||
onFileDroppedEvent(event: unknown)
|
||||||
|
Parameters :
Returns :
any
|
| archives |
Type : IApplicationBinary[]
|
Default value : []
|
| canReactivate |
Type : unknown
|
Default value : false
|
| fileList |
Type : FileList
|
| isLoading |
Type : boolean
|
| last |
Type : IApplicationBinary
|
| toActivateVersionId |
Type : string
|
| uploadInProgress |
Type : unknown
|
Default value : false
|
| uploadProgress |
getuploadProgress()
|
<c8y-drop-area
(dropped)="onFileDroppedEvent($event)"
[accept]="'.zip'"
[loading]="uploadInProgress"
[maxAllowedFiles]="1"
[message]="'Upload a *.zip file' | translate"
[progress]="uploadProgress | async"
[forceHideList]="true"
class="drop-area-sm"
>
</c8y-drop-area>