File

auth-configuration/sso-configuration/template-parts/access-mapping/inventory-roles-modal.component.ts

Metadata

Index

Properties
Methods

Constructor

constructor(modal: BsModalRef)
Parameters :
Name Type Optional
modal BsModalRef No

Methods

dismiss
dismiss()
Returns : void
select
select()
Returns : void

Properties

label
Default value : gettext('Groups')
Public modal
Type : BsModalRef
resultEmitter
Type : EventEmitter<IIdentified[]>
Default value : new EventEmitter<IIdentified[]>()
selectedGroups
Type : IIdentified[]
<div class="viewport-modal">
  <div class="modal-header dialog-header">
    <i c8yIcon="c8y-group-open"></i>
    <h4 id="modal-title">{{ 'Select from inventory' | translate }}</h4>
  </div>
  <div class="modal-inner-scroll">
    <div
      id="modal-body"
      class="bg-component"
    >
      <c8y-asset-selector
        class="d-contents"
        [(ngModel)]="selectedGroups"
        [config]="{
          label: label,
          showFilter: true,
          multi: true,
          groupsSelectable: true,
          columnHeaders: false,
          singleColumn: true,
          groupsOnly: true
        }"
      ></c8y-asset-selector>
    </div>
  </div>

  <div class="modal-footer">
    <button
      class="btn btn-default"
      type="button"
      title="{{ 'Cancel' | translate }}"
      (click)="dismiss()"
    >
      {{ 'Cancel' | translate }}
    </button>
    <button
      class="btn btn-primary"
      type="button"
      title="{{ 'Select' | translate }}"
      (click)="select()"
    >
      {{ 'Select' | translate }}
    </button>
  </div>
</div>

results matching ""

    No results matching ""