repository/shared/columns/versions.cell-renderer.component.ts
selector | c8y-versions-cell-renderer |
standalone | true |
imports |
CommonModule
DeviceGridModule
TooltipModule
RouterModule
|
templateUrl | ./versions.cell-renderer.component.html |
Properties |
Methods |
constructor(context: CellRendererContext, repositoryService: RepositoryService)
|
|||||||||
Parameters :
|
getBaseVersionsCount$ | ||||||
getBaseVersionsCount$(item: IManagedObject)
|
||||||
Decorators :
@memoize(undefined)
|
||||||
Parameters :
Returns :
Observable<number | string>
|
Public context |
Type : CellRendererContext
|
isLegacy |
Default value : this.repositoryService.isLegacyEntry.bind(this.repositoryService)
|
item |
@if (isLegacy(item)) {
<span
class="label label-warning m-l-auto-sm"
translate
>
Legacy
</span>
} @else {
@if (getBaseVersionsCount$(item) | async; as baseVersionsCount) {
<span class="badge badge-info m-l-auto-sm">
{{ baseVersionsCount }}
</span>
} @else {
<span class="badge badge-info m-l-auto-sm">
<i
class="icon-spin"
c8yIcon="circle-o-notch"
></i>
</span>
}
}