File

protocol-impact/refresh-action.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods

Constructor

constructor(vcRef: ViewContainerRef, router: Router, impactService: ImpactSubscriptionService, alert: AlertService)
Parameters :
Name Type Optional
vcRef ViewContainerRef No
router Router No
impactService ImpactSubscriptionService No
alert AlertService No

Methods

ngOnInit
ngOnInit()
Returns : void
Async refresh
refresh()
Returns : any

Properties

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>&nbsp;<span
        translate
        >Refresh device resources</span
      >
    </button>
  </li>
</ng-template>

results matching ""

    No results matching ""