core/user/user-edit-modal.component.ts
selector | c8y-user-edit-modal |
templateUrl | ./user-edit-modal.component.html |
Properties |
|
Methods |
|
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 :
|
Async gainsightTrackingAppReload |
gainsightTrackingAppReload()
|
Returns :
any
|
Async ngOnInit |
ngOnInit()
|
Returns :
any
|
onDismiss |
onDismiss()
|
Returns :
void
|
onLanguage | ||||
onLanguage(lang)
|
||||
Parameters :
Returns :
void
|
onProductExperience | ||||||
onProductExperience(option: boolean)
|
||||||
Parameters :
Returns :
void
|
Async persistLanguage | ||||
persistLanguage(lang)
|
||||
Parameters :
Returns :
Promise<boolean>
|
Async updateAndClose | ||||
updateAndClose(user)
|
||||
Parameters :
Returns :
any
|
changedLang |
Type : string
|
currentUsageTrackingState |
Type : boolean
|
currentUser |
Type : IUser
|
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"
[showProductUsageSetting]="showProductUsageSetting"
(onLanguage)="onLanguage($event)"
(onProductExperience)="onProductExperience($event)"
(onUser)="updateAndClose($event)"
(onCancel)="onDismiss()"
>
</c8y-user-edit>
</c8y-modal>