File

core/user/user-edit-modal.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods

Constructor

constructor(modal: BsModalRef, user: UserService, ui: AppStateService, auth: BasicAuth, client: FetchClient, alert: AlertService, translate: TranslateService, userPreferences: UserPreferencesService, modalService: BsModalService, c8yModalService: ModalService, gainsightService: GainsightService, cookieBannerService: CookieBannerService, loginService: LoginService, passwordService: PasswordService)
Parameters :
Name Type Optional
modal BsModalRef No
user UserService No
ui AppStateService No
auth BasicAuth No
client FetchClient No
alert AlertService No
translate TranslateService No
userPreferences UserPreferencesService No
modalService BsModalService No
c8yModalService ModalService No
gainsightService GainsightService No
cookieBannerService CookieBannerService No
loginService LoginService No
passwordService PasswordService No

Methods

Async gainsightTrackingAppReload
gainsightTrackingAppReload()
Returns : any
Async ngOnInit
ngOnInit()
Returns : any
onDismiss
onDismiss()
Returns : void
onGainsightBot
onGainsightBot(option: boolean)
Parameters :
Name Type Optional
option boolean No
Returns : void
onLanguage
onLanguage(lang)
Parameters :
Name Optional
lang No
Returns : void
onProductExperience
onProductExperience(option: boolean)
Parameters :
Name Type Optional
option boolean No
Returns : void
Async persistLanguage
persistLanguage(lang)
Parameters :
Name Optional
lang No
Returns : Promise<boolean>
Async updateAndClose
updateAndClose(user)
Parameters :
Name Optional
user No
Returns : any

Properties

changedLang
Type : string
currentGainsightBotState
Type : boolean
currentUsageTrackingState
Type : boolean
currentUser
Type : IUser
gainsightBotState
Type : boolean
lang
Type : string
loading
Default value : false
Public modal
Type : BsModalRef
showProductUsageSetting
Type : boolean
Default value : false
Public ui
Type : AppStateService
usageTrackingState
Type : boolean
Public user
Type : UserService
<c8y-modal [customFooter]="true" [title]="'Edit user' | translate" (onDismiss)="onDismiss()">
  <c8y-user-edit
    [lang]="lang"
    [user]="ui.currentUser | async"
    [loading]="loading"
    [isUsageTrackingEnabled]="currentUsageTrackingState"
    [isGainsightBotEnabled]="currentGainsightBotState"
    [showProductUsageSetting]="showProductUsageSetting"
    (onLanguage)="onLanguage($event)"
    (onProductExperience)="onProductExperience($event)"
    (onGainsightBot)="onGainsightBot($event)"
    (onUser)="updateAndClose($event)"
    (onCancel)="onDismiss()"
  >
  </c8y-user-edit>
</c8y-modal>

results matching ""

    No results matching ""