move data type editor into data type folder

This commit is contained in:
Mads Rasmussen
2022-08-04 15:41:31 +02:00
parent d49bd634f4
commit 6a7b440046
2 changed files with 8 additions and 8 deletions

View File

@@ -3,17 +3,17 @@ import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
import { css, html, LitElement, nothing } from 'lit';
import { customElement, property, state } from 'lit/decorators.js';
import { Subscription, distinctUntilChanged } from 'rxjs';
import { UmbContextProviderMixin, UmbContextConsumerMixin } from '../../core/context';
import { UmbNotificationService } from '../../core/services/notification.service';
import { UmbDataTypeStore } from '../../core/stores/data-type.store';
import { DataTypeEntity } from '../../mocks/data/data-type.data';
import { UmbDataTypeContext } from './data-type/data-type.context';
import { UmbContextProviderMixin, UmbContextConsumerMixin } from '../../../core/context';
import { UmbNotificationService } from '../../../core/services/notification.service';
import { UmbDataTypeStore } from '../../../core/stores/data-type.store';
import { DataTypeEntity } from '../../../mocks/data/data-type.data';
import { UmbDataTypeContext } from './data-type.context';
import '../../backoffice/components/editor-entity.element';
import '../../components/editor-entity.element';
// Lazy load
// TODO: Make this dynamic, use load-extensions method to loop over extensions for this node.
import '../editor-views/editor-view-data-type-edit.element';
import '../../editor-views/editor-view-data-type-edit.element';
@customElement('umb-editor-data-type')
export class UmbEditorDataTypeElement extends UmbContextProviderMixin(UmbContextConsumerMixin(LitElement)) {

View File

@@ -20,7 +20,7 @@ export class UmbSettingsSection extends UmbContextConsumerMixin(LitElement) {
// TODO: who should own this logic? Should it be each tree/editor that knows sub-routes?
{
path: 'data-type/:id',
component: () => import('../../editors/editor-data-type.element'),
component: () => import('../../editors/data-type/editor-data-type.element'),
setup(component: any, info: IRoutingInfo) {
component.id = info.match.params.id;
},