File

ecosystem/applications/duplicate-application/duplicate-application-properties/duplicate-application-properties.component.ts

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor(bsModalRef: BsModalRef, ecosystemService: EcosystemService, applicationService: ApplicationService)
Parameters :
Name Type Optional
bsModalRef BsModalRef No
ecosystemService EcosystemService No
applicationService ApplicationService No

Inputs

existingApps
Type : IApplication[]
isFirstStep
Type : boolean
Default value : false
selectedApp
Type : BehaviorSubject<IApplication>
stepper
Type : C8yStepper

Outputs

duplicatedApp
Type : EventEmitter

Methods

back
back()
Returns : void
cancel
cancel()
Returns : void
Async duplicateApp
duplicateApp()
Returns : any
getAppConfig
getAppConfig()
Returns : void
ngOnInit
ngOnInit()
Returns : void

Properties

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>

results matching ""

    No results matching ""