Skip to content

Commit

Permalink
Merge pull request #2382 from umbraco/v15/bugfix/create-dataset-again
Browse files Browse the repository at this point in the history
Bug: re-introduce dataset creation
  • Loading branch information
nielslyngsoe authored Sep 30, 2024
2 parents fbc99dd + 1c5cd6b commit 5a13b77
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { UMB_DATA_TYPE_WORKSPACE_CONTEXT } from './data-type-workspace.context-token.js';
import { css, html, customElement } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
/**
Expand All @@ -6,6 +7,14 @@ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
*/
@customElement('umb-data-type-workspace-editor')
export class UmbDataTypeWorkspaceEditorElement extends UmbLitElement {
constructor() {
super();

this.consumeContext(UMB_DATA_TYPE_WORKSPACE_CONTEXT, (workspaceContext) => {
workspaceContext.createPropertyDatasetContext(this);
});
}

override render() {
return html`
<umb-workspace-editor alias="Umb.Workspace.DataType">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { customElement, html, property, state } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import { UmbPropertyValueChangeEvent } from '@umbraco-cms/backoffice/property-editor';
import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor';
import type { UmbPropertyEditorUiElement } from '@umbraco-cms/backoffice/property-editor';
import type {
UmbPropertyEditorUiElement,
UmbPropertyEditorConfigCollection,
} from '@umbraco-cms/backoffice/property-editor';
import {
UmbBlockRteEntriesContext,
type UmbBlockRteLayoutModel,
Expand Down

0 comments on commit 5a13b77

Please sign in to comment.