ecosystem/applications/duplicate-application/duplicate-application-list/duplicate-application-list.component.ts
selector | c8y-duplicate-application-list |
templateUrl | ./duplicate-application-list.component.html |
Properties |
|
Methods |
Inputs |
Outputs |
constructor(ecosystemService: EcosystemService, wizardComponent: WizardComponent)
|
|||||||||
Parameters :
|
existingApps |
Type : IApplication[]
|
stepper |
Type : C8yStepper
|
onSelectedApp |
Type : EventEmitter
|
back |
back()
|
Returns :
void
|
cancel |
cancel()
|
Returns :
void
|
select | ||||||
select(selectedApp: IApplication)
|
||||||
Parameters :
Returns :
void
|
appState |
Type : ApplicationState
|
Public ecosystemService |
Type : EcosystemService
|
<div class="c8y-wizard-list-nav">
<button
(click)="select(app)"
*ngFor="let app of existingApps"
class="list-group-item text-truncate p-t-8 p-b-8"
type="button"
>
<c8y-app-icon
[app]="app"
[contextPath]="app.contextPath"
[name]="app.name"
class="list-group-icon"
></c8y-app-icon>
<span [innerText]="app | humanizeAppName | async" class="pointer"></span>
<span [ngClass]="ecosystemService.getAppState(app).class" class="label m-l-16">{{
ecosystemService.getAppState(app).label | translate
}}</span>
</button>
</div>
<c8y-wizard-footer>
<button
(click)="back()"
class="btn btn-default"
title="{{ 'Back' | translate }}"
translate
type="button"
>
Back
</button>
<button (click)="cancel()" class="btn btn-default" title="{{ 'Cancel' | translate }}" translate>
Cancel
</button>
</c8y-wizard-footer>