diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/sections/users/views/users/editor-view-users-invite.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/sections/users/views/users/editor-view-users-invite.element.ts index 33879d9953..815ac8c1ec 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/sections/users/views/users/editor-view-users-invite.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/sections/users/views/users/editor-view-users-invite.element.ts @@ -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() {