diff --git a/src/Umbraco.Web.UI.Client/src/packages/members/member-groups/workspace/member-group-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/members/member-groups/workspace/member-group-workspace.context.ts index 5905241285..a694307280 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/members/member-groups/workspace/member-group-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/members/member-groups/workspace/member-group-workspace.context.ts @@ -46,7 +46,7 @@ export class UmbWorkspaceMemberGroupContext } } - async createScaffold() { + async create() { const { data } = await this.repository.createScaffold(); if (!data) return; this.setIsNew(true); diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/workspace/data-type-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/workspace/data-type-workspace.context.ts index dc0e25b629..b03c7588c4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/workspace/data-type-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/workspace/data-type-workspace.context.ts @@ -27,7 +27,7 @@ export class UmbDataTypeWorkspaceContext } } - async createScaffold(parentId: string | null) { + async create(parentId: string | null) { let { data } = await this.repository.createScaffold(parentId); if (this.modalContext) { data = { ...data, ...this.modalContext.data.preset }; diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/workspace/data-type-workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/workspace/data-type-workspace.element.ts index 2bda82db04..97c056ac9e 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/workspace/data-type-workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/data-types/workspace/data-type-workspace.element.ts @@ -18,7 +18,7 @@ export class UmbDataTypeWorkspaceElement extends UmbLitElement { component: () => this.#element, setup: (_component, info) => { const parentId = info.match.params.parentId === 'null' ? null : info.match.params.parentId; - this.#workspaceContext.createScaffold(parentId); + this.#workspaceContext.create(parentId); }, }, { diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.context.ts index f5c2169f92..d45a6e24d1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.context.ts @@ -27,7 +27,7 @@ export class UmbLanguageWorkspaceContext } } - async createScaffold() { + async create() { const { data } = await this.repository.createScaffold(); if (!data) return; this.setIsNew(true); diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.element.ts index a5fb89a4d1..024ff5b6a6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.element.ts @@ -40,7 +40,7 @@ export class UmbLanguageWorkspaceElement extends UmbLitElement { path: 'create', component: this.#getComponentElement, setup: async () => { - this.#languageWorkspaceContext.createScaffold(); + this.#languageWorkspaceContext.create(); // Navigate to edit route when language is created: this.observe( diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-views-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-views-workspace.context.ts index 6372e0581a..6ccc43c323 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-views-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-views-workspace.context.ts @@ -46,7 +46,7 @@ export class UmbPartialViewsWorkspaceContext extends UmbWorkspaceContext this.#element, setup: async (component: PageComponent, info: IRoutingInfo) => { const parentKey = info.match.params.parentKey; - this.#partialViewsWorkspaceContext.createScaffold(parentKey); + this.#partialViewsWorkspaceContext.create(parentKey); }, }, { diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace.context.ts index f8fb761ba1..7dc7df9b88 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/templates/workspace/template-workspace.context.ts @@ -128,7 +128,7 @@ export class UmbTemplateWorkspaceContext extends UmbWorkspaceContext this.#element, setup: (component: PageComponent, info: IRoutingInfo) => { const parentKey = info.match.params.parentKey; - this.#templateWorkspaceContext.createScaffold(parentKey); + this.#templateWorkspaceContext.create(parentKey); }, }, { diff --git a/src/Umbraco.Web.UI.Client/src/packages/translation/dictionary/workspace/dictionary-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/translation/dictionary/workspace/dictionary-workspace.context.ts index db2c269e2e..1bdddb14da 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/translation/dictionary/workspace/dictionary-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/translation/dictionary/workspace/dictionary-workspace.context.ts @@ -62,7 +62,7 @@ export class UmbDictionaryWorkspaceContext } } - async createScaffold(parentId: string | null) { + async create(parentId: string | null) { const { data } = await this.repository.createScaffold(parentId); if (!data) return; this.setIsNew(true); diff --git a/src/Umbraco.Web.UI.Client/src/packages/users/user-groups/workspace/user-group-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/packages/users/user-groups/workspace/user-group-workspace.context.ts index cf72e7e863..1ae25cde65 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/users/user-groups/workspace/user-group-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/users/user-groups/workspace/user-group-workspace.context.ts @@ -23,7 +23,7 @@ export class UmbUserGroupWorkspaceContext this.#userRepository = new UmbUserRepository(host); } - async createScaffold() { + async create() { const { data } = await this.repository.createScaffold(null); this.setIsNew(true); // TODO: Should the data be the base model or the presentation model? diff --git a/src/Umbraco.Web.UI.Client/src/packages/users/user-groups/workspace/user-group-workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/users/user-groups/workspace/user-group-workspace.element.ts index 99df04ce34..0de7deb0f6 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/users/user-groups/workspace/user-group-workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/users/user-groups/workspace/user-group-workspace.element.ts @@ -16,7 +16,7 @@ export class UmbUserGroupWorkspaceElement extends UmbLitElement { path: 'create', component: () => this.#element, setup: (component, info) => { - this.#workspaceContext.createScaffold(); + this.#workspaceContext.create(); }, }, {