update all section paths
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { css, html, customElement, state } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbTextStyles } from "@umbraco-cms/backoffice/style";
|
||||
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
|
||||
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
import {
|
||||
UmbModalManagerContext,
|
||||
@@ -40,7 +40,7 @@ export class UmbUserProfileAppProfileElement extends UmbLitElement {
|
||||
private _edit() {
|
||||
if (!this._currentUser) return;
|
||||
|
||||
history.pushState(null, '', 'section/users/view/users/user/' + this._currentUser.id); //TODO Change to a tag with href and make dynamic
|
||||
history.pushState(null, '', 'section/user-management/view/users/user/' + this._currentUser.id); //TODO Change to a tag with href and make dynamic
|
||||
//TODO Implement modal routing for the current-user-modal, so that the modal closes when navigating to the edit profile page
|
||||
}
|
||||
private _changePassword() {
|
||||
|
||||
@@ -17,7 +17,7 @@ export class UmbUserGroupCollectionHeaderElement extends UmbLitElement {
|
||||
}
|
||||
|
||||
#onCreate() {
|
||||
history.pushState(null, '', 'section/users/view/user-groups/user-group/create/');
|
||||
history.pushState(null, '', 'section/user-management/view/user-groups/user-group/create/');
|
||||
}
|
||||
|
||||
#onSearch(event: UUIInputEvent) {
|
||||
|
||||
@@ -10,7 +10,9 @@ export class UmbUserGroupTableNameColumnLayoutElement extends LitElement {
|
||||
value!: any;
|
||||
|
||||
render() {
|
||||
return html` <a style="font-weight: bold;" href="section/users/view/user-groups/user-group/edit/${this.item.id}">
|
||||
return html` <a
|
||||
style="font-weight: bold;"
|
||||
href="section/user-management/view/user-groups/user-group/edit/${this.item.id}">
|
||||
${this.value.name}
|
||||
</a>`;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ export class UmbUserGridCollectionViewElement extends UmbLitElement {
|
||||
//TODO How should we handle url stuff?
|
||||
private _handleOpenCard(id: string) {
|
||||
//TODO this will not be needed when cards works as links with href
|
||||
history.pushState(null, '', 'section/users/view/users/user/' + id); //TODO Change to a tag with href and make dynamic
|
||||
history.pushState(null, '', 'section/user-management/view/users/user/' + id); //TODO Change to a tag with href and make dynamic
|
||||
}
|
||||
|
||||
#onSelect(user: UmbUserDetail) {
|
||||
|
||||
@@ -15,7 +15,9 @@ export class UmbUserTableNameColumnLayoutElement extends LitElement {
|
||||
render() {
|
||||
return html` <div style="display: flex; align-items: center;">
|
||||
<uui-avatar name="${this.value.name}" style="margin-right: var(--uui-size-space-3);"></uui-avatar>
|
||||
<a style="font-weight: bold;" href="section/users/view/users/user/${this.item.id}">${this.value.name}</a>
|
||||
<a style="font-weight: bold;" href="section/user-management/view/users/user/${this.item.id}"
|
||||
>${this.value.name}</a
|
||||
>
|
||||
</div>`;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ export class UmbUserCreateSuccessModalElement extends UmbModalBaseElement<
|
||||
|
||||
#onGoToProfile(event: Event) {
|
||||
event.stopPropagation();
|
||||
history.pushState(null, '', 'section/users/view/users/user/' + this.id); //TODO: URL Should be dynamic
|
||||
history.pushState(null, '', 'section/user-management/view/users/user/' + this.id); //TODO: URL Should be dynamic
|
||||
this.modalContext?.submit();
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ export class UmbUserInviteModalElement extends UmbModalBaseElement {
|
||||
if (!this._invitedUser) return;
|
||||
|
||||
this._closeModal();
|
||||
history.pushState(null, '', 'section/users/view/users/user/' + this._invitedUser?.id); //TODO: URL Should be dynamic
|
||||
history.pushState(null, '', 'section/user-management/view/users/user/' + this._invitedUser?.id); //TODO: URL Should be dynamic
|
||||
}
|
||||
|
||||
private _renderForm() {
|
||||
|
||||
@@ -60,7 +60,7 @@ export class UmbUserWorkspaceEditorElement extends UmbLitElement {
|
||||
#renderHeader() {
|
||||
return html`
|
||||
<div id="header" slot="header">
|
||||
<a href="/section/users">
|
||||
<a href="section/user-management">
|
||||
<uui-icon name="umb:arrow-left"></uui-icon>
|
||||
</a>
|
||||
<uui-input id="name" .value=${this._user?.name ?? ''} @input="${this.#onNameChange}"></uui-input>
|
||||
|
||||
Reference in New Issue
Block a user