ecosystem/applications/duplicate-application/duplicate-application-properties/duplicate-application-properties.component.ts
selector | c8y-duplicate-application-properties |
templateUrl | ./duplicate-application-properties.component.html |
Properties |
Methods |
Inputs |
Outputs |
constructor(bsModalRef: BsModalRef, ecosystemService: EcosystemService, applicationService: ApplicationService)
|
||||||||||||
Parameters :
|
existingApps |
Type : IApplication[]
|
isFirstStep |
Type : boolean
|
Default value : false
|
selectedApp |
Type : BehaviorSubject<IApplication>
|
stepper |
Type : C8yStepper
|
duplicatedApp |
Type : EventEmitter
|
back |
back()
|
Returns :
void
|
cancel |
cancel()
|
Returns :
void
|
Async duplicateApp |
duplicateApp()
|
Returns :
any
|
getAppConfig |
getAppConfig()
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
applicationPropertiesForm |
Type : ApplicationPropertiesFormComponent
|
Decorators :
@ViewChild(ApplicationPropertiesFormComponent)
|
disableForm |
Default value : false
|
inProgress |
Type : boolean
|
Default value : false
|
isSubscribedApp$ |
Type : Observable<boolean>
|
newAppConfig |
Type : IApplication
|
<p
class="p-16 text-center text-medium separator-bottom sticky-top bg-white fit-w"
*ngIf="!inProgress"
>
{{ 'Provide application details' | translate }}
</p>
<ng-container *ngIf="!inProgress">
<label class="c8y-switch" *ngIf="isSubscribedApp$ | async">
<input type="checkbox" [(ngModel)]="disableForm" (change)="getAppConfig()" />
<span></span> {{ 'Overrule subscribed application' | translate }}
</label>
<c8y-application-properties-form
[application]="newAppConfig"
class="d-block fit-w"
[disabled]="disableForm"
></c8y-application-properties-form>
</ng-container>
<c8y-progress-bar
*ngIf="inProgress"
[message]="'Duplicating…' | translate"
class="text-center d-block"
></c8y-progress-bar>
<c8y-wizard-footer>
<button
*ngIf="!isFirstStep"
(click)="back()"
[disabled]="inProgress"
class="btn btn-default"
type="button"
title="{{ 'Back' | translate }}"
>
{{ 'Back' | translate }}
</button>
<button (click)="cancel()" class="btn btn-default" title="{{ 'Cancel' | translate }}">
{{ 'Cancel' | translate }}
</button>
<button
(click)="duplicateApp()"
[disabled]="inProgress"
class="btn btn-primary"
type="button"
title="{{ 'Duplicate' | translate }}"
>
{{ 'Duplicate' | translate }}
</button>
</c8y-wizard-footer>