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, userPreferences: UserPreferencesService, c8yModalService: ModalService, gainsightService: GainsightService, cookieBannerService: CookieBannerService, loginService: LoginService, passwordService: PasswordService, userEngagementsService: UserEngagementsService)
Parameters :
Name Type Optional
modal BsModalRef No
user UserService No
ui AppStateService No
auth BasicAuth No
client FetchClient No
alert AlertService No
userPreferences UserPreferencesService No
c8yModalService ModalService No
gainsightService GainsightService No
cookieBannerService CookieBannerService No
loginService LoginService No
passwordService PasswordService No
userEngagementsService UserEngagementsService No

Methods

Async gainsightTrackingAppReload
gainsightTrackingAppReload()
Returns : any
Async ngOnInit
ngOnInit()
Returns : any
Async onDismiss
onDismiss()
Returns : any
onUsageTrackingChange
onUsageTrackingChange(isEnabled: boolean)
Parameters :
Name Type Optional
isEnabled boolean No
Returns : void
onUserEngagementPreferenceChange
onUserEngagementPreferenceChange(isEnabled: boolean)
Parameters :
Name Type Optional
isEnabled boolean No
Returns : void
Async setInitialProductExperienceOptions
setInitialProductExperienceOptions()

Initializes product experience options for the user.

This function performs the following operations:

  • Determines if the user has the permission to edit product experience options.
  • If the user has the permission and functional cookies are enabled:
    • Checks whether personalized product experience tracking is active.
    • Checks whether in-product information and communication is active.
Returns : any
Async updateAndClose
updateAndClose(user)
Parameters :
Name Optional
user No
Returns : any

Properties

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>

results matching ""

    No results matching ""