core/user/user-edit-modal.component.ts
OnInit
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, userPreferences: UserPreferencesService, c8yModalService: ModalService, gainsightService: GainsightService, cookieBannerService: CookieBannerService, loginService: LoginService, passwordService: PasswordService, userEngagementsService: UserEngagementsService)
|
||||||||||||||||||||||||||||||||||||||||||
Parameters :
|
Async gainsightTrackingAppReload |
gainsightTrackingAppReload()
|
Returns :
any
|
Async ngOnInit |
ngOnInit()
|
Returns :
any
|
Async onDismiss |
onDismiss()
|
Returns :
any
|
onUsageTrackingChange | ||||||
onUsageTrackingChange(isEnabled: boolean)
|
||||||
Parameters :
Returns :
void
|
onUserEngagementPreferenceChange | ||||||
onUserEngagementPreferenceChange(isEnabled: boolean)
|
||||||
Parameters :
Returns :
void
|
Async setInitialProductExperienceOptions |
setInitialProductExperienceOptions()
|
Initializes product experience options for the user. This function performs the following operations:
Returns :
any
|
Async updateAndClose | ||||
updateAndClose(user)
|
||||
Parameters :
Returns :
any
|
changedLang |
Type : string
|
currentUsageTrackingState |
Type : boolean
|
currentUser |
Type : IUser
|
currentUserEngagementPreferenceInitialState |
Type : boolean
|
loading |
Default value : false
|
Public modal |
Type : BsModalRef
|
showProductExperienceOptions |
Default value : false
|
Public ui |
Type : AppStateService
|
usageTrackingState |
Type : boolean
|
Public user |
Type : UserService
|
userEngagementPreferenceNewState |
Type : boolean
|
<c8y-modal
[title]="'Edit user' | translate"
[customFooter]="true"
(onDismiss)="onDismiss()"
>
<c8y-user-edit
[user]="ui.currentUser | async"
[loading]="loading"
[isUsageTrackingEnabled]="currentUsageTrackingState"
[isUserEngagementPreferenceEnabled]="currentUserEngagementPreferenceInitialState"
[showProductExperienceOptions]="showProductExperienceOptions"
(onUsageTrackingChange)="onUsageTrackingChange($event)"
(onUserEngagementPreferenceChange)="onUserEngagementPreferenceChange($event)"
(onUser)="updateAndClose($event)"
(onCancel)="onDismiss()"
></c8y-user-edit>
</c8y-modal>