File

context-dashboard/dashboard-availability.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods
Inputs
Outputs
Accessors

Constructor

constructor(userGroupService: UserGroupService, gainsightService: GainsightService, permissions: Permissions)
Parameters :
Name Type Optional
userGroupService UserGroupService No
gainsightService GainsightService No
permissions Permissions No

Inputs

globalRolesIds
Type : DashboardGlobalRoles

Ids of global roles assigned to the dashboard or a string "all" indicating the selection of all global roles. The value undefined is treated as equivalent to 'all'.

Outputs

globalRolesIdsChange
Type : EventEmitter

Methods

Async ngOnInit
ngOnInit()
Returns : any
onSelected
onSelected(items: Item[])
Parameters :
Name Type Optional
items Item[] No
Returns : void

Properties

globalRolesItems
Type : Item[]
Default value : []
globalRolesItemsSelected
Type : Item[]
Default value : []
selectHidden
Default value : false

Accessors

globalRolesIds
getglobalRolesIds()

Ids of global roles assigned to the dashboard or a string "all" indicating the selection of all global roles. The value undefined is treated as equivalent to 'all'.

setglobalRolesIds(ids: DashboardGlobalRoles)
Parameters :
Name Type Optional
ids DashboardGlobalRoles No
Returns : void
<fieldset class="c8y-fieldset c8y-fieldset--lg">
  <legend>{{ 'Availability`of dashboard based on permissions`' | translate }}</legend>
  <c8y-form-group>
    <label for="availability">
      <span
        class="m-r-4"
        id="availability"
      >
        {{ 'Global roles' | translate }}
      </span>
      <button
        class="btn-help btn-help--sm"
        [attr.aria-label]="'Help' | translate"
        popover="{{
          'Select the global roles for which the dashboard will be available' | translate
        }}"
        placement="right"
        triggers="focus"
        container="body"
        type="button"
      ></button>
    </label>
    <c8y-select-legacy
      *ngIf="!selectHidden"
      [items]="globalRolesItems"
      [selected]="globalRolesItemsSelected"
      (onChange)="onSelected($event)"
    ></c8y-select-legacy>
    <p
      class="form-control-static"
      *ngIf="selectHidden"
    >
      {{ "You don't have permission to change global roles." | translate }}
    </p>
  </c8y-form-group>
</fieldset>

results matching ""

    No results matching ""