This commit is contained in:
Jesper Møller Jensen
2023-05-10 16:19:17 +12:00
parent 626bedb5a9
commit ce43f51564
3 changed files with 1 additions and 4 deletions

View File

@@ -19,7 +19,6 @@ export class UmbUserGroupCollectionHeaderElement extends UmbLitElement {
}
#onCreate() {
//TODO Navigate to create workspace
history.pushState(null, '', 'section/users/view/user-groups/user-group/create/');
}

View File

@@ -5,7 +5,6 @@ import {
UserGroupResource,
UpdateUserGroupRequestModel,
SaveUserGroupRequestModel,
UserGroupBaseModel,
} from '@umbraco-cms/backoffice/backend-api';
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
@@ -28,6 +27,7 @@ export class UmbUserGroupServerDataSource implements UmbUserGroupDetailDataSourc
this.#host = host;
}
//TODO should parentId be optional in the generic interface?
async createScaffold(parentId: string | null) {
const data: SaveUserGroupRequestModel = {
name: '',

View File

@@ -16,8 +16,6 @@ export class UmbUserWorkspaceContext
data = this.#data.asObservable();
async load(id: string) {
console.log('load');
const { data } = await this.repository.requestById(id);
if (data) {
this.setIsNew(false);