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 { 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 { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||||
import {
|
import {
|
||||||
UmbModalManagerContext,
|
UmbModalManagerContext,
|
||||||
@@ -40,7 +40,7 @@ export class UmbUserProfileAppProfileElement extends UmbLitElement {
|
|||||||
private _edit() {
|
private _edit() {
|
||||||
if (!this._currentUser) return;
|
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
|
//TODO Implement modal routing for the current-user-modal, so that the modal closes when navigating to the edit profile page
|
||||||
}
|
}
|
||||||
private _changePassword() {
|
private _changePassword() {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export class UmbUserGroupCollectionHeaderElement extends UmbLitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#onCreate() {
|
#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) {
|
#onSearch(event: UUIInputEvent) {
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ export class UmbUserGroupTableNameColumnLayoutElement extends LitElement {
|
|||||||
value!: any;
|
value!: any;
|
||||||
|
|
||||||
render() {
|
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}
|
${this.value.name}
|
||||||
</a>`;
|
</a>`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export class UmbUserGridCollectionViewElement extends UmbLitElement {
|
|||||||
//TODO How should we handle url stuff?
|
//TODO How should we handle url stuff?
|
||||||
private _handleOpenCard(id: string) {
|
private _handleOpenCard(id: string) {
|
||||||
//TODO this will not be needed when cards works as links with href
|
//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) {
|
#onSelect(user: UmbUserDetail) {
|
||||||
|
|||||||
@@ -15,7 +15,9 @@ export class UmbUserTableNameColumnLayoutElement extends LitElement {
|
|||||||
render() {
|
render() {
|
||||||
return html` <div style="display: flex; align-items: center;">
|
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>
|
<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>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export class UmbUserCreateSuccessModalElement extends UmbModalBaseElement<
|
|||||||
|
|
||||||
#onGoToProfile(event: Event) {
|
#onGoToProfile(event: Event) {
|
||||||
event.stopPropagation();
|
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();
|
this.modalContext?.submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export class UmbUserInviteModalElement extends UmbModalBaseElement {
|
|||||||
if (!this._invitedUser) return;
|
if (!this._invitedUser) return;
|
||||||
|
|
||||||
this._closeModal();
|
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() {
|
private _renderForm() {
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export class UmbUserWorkspaceEditorElement extends UmbLitElement {
|
|||||||
#renderHeader() {
|
#renderHeader() {
|
||||||
return html`
|
return html`
|
||||||
<div id="header" slot="header">
|
<div id="header" slot="header">
|
||||||
<a href="/section/users">
|
<a href="section/user-management">
|
||||||
<uui-icon name="umb:arrow-left"></uui-icon>
|
<uui-icon name="umb:arrow-left"></uui-icon>
|
||||||
</a>
|
</a>
|
||||||
<uui-input id="name" .value=${this._user?.name ?? ''} @input="${this.#onNameChange}"></uui-input>
|
<uui-input id="name" .value=${this._user?.name ?? ''} @input="${this.#onNameChange}"></uui-input>
|
||||||
|
|||||||
Reference in New Issue
Block a user