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