Link to invited user

This commit is contained in:
Jesper Møller Jensen
2022-10-10 13:26:23 +02:00
parent 52bbe0f713
commit 71d1a6ac25

View File

@@ -52,7 +52,6 @@ export class UmbEditorViewUsersInviteElement extends UmbContextConsumerMixin(Umb
private _invitedUser?: UserDetails;
protected _userStore?: UmbUserStore;
private _notificationService?: UmbNotificationService;
connectedCallback(): void {
super.connectedCallback();
@@ -60,10 +59,6 @@ export class UmbEditorViewUsersInviteElement extends UmbContextConsumerMixin(Umb
this.consumeContext('umbUserStore', (usersContext: UmbUserStore) => {
this._userStore = usersContext;
});
this.consumeContext('umbNotificationService', (service: UmbNotificationService) => {
this._notificationService = service;
});
}
private _handleSubmit(e: Event) {
@@ -100,7 +95,10 @@ export class UmbEditorViewUsersInviteElement extends UmbContextConsumerMixin(Umb
}
private _goToProfile() {
//TODO: navigate to user profile
if (!this._invitedUser) return;
this._closeModal();
history.pushState(null, '', '/section/users/view/users/user/' + this._invitedUser?.key); //TODO: URL Should be dynamic
}
private _renderForm() {