File

repository/shared/columns/versions.cell-renderer.component.ts

Metadata

Index

Properties
Methods

Constructor

constructor(context: CellRendererContext, repositoryService: RepositoryService)
Parameters :
Name Type Optional
context CellRendererContext No
repositoryService RepositoryService No

Methods

getBaseVersionsCount$
getBaseVersionsCount$(item: IManagedObject)
Decorators :
@memoize(undefined)
Parameters :
Name Type Optional
item IManagedObject No
Returns : Observable<number | string>

Properties

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>
  }
}

results matching ""

    No results matching ""