protocol-impact/refresh-action.component.ts
selector | c8y-impact-refresh-action |
templateUrl | ./refresh-action.component.html |
Properties |
Methods |
constructor(vcRef: ViewContainerRef, router: Router, impactService: ImpactSubscriptionService, alert: AlertService)
|
|||||||||||||||
Parameters :
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
Async refresh |
refresh()
|
Returns :
any
|
requestInProgress |
Type : boolean
|
templateCopy |
Decorators :
@ViewChild('templateCopy', {read: TemplateRef, static: true})
|
<ng-template #templateCopy>
<li>
<button
class="btn btn-link"
title="{{ 'Refresh device resources' | translate }}"
(click)="refresh()"
>
<i c8yIcon="refresh" [ngClass]="{ 'icon-spin': requestInProgress }"></i> <span
translate
>Refresh device resources</span
>
</button>
</li>
</ng-template>