set up entity context
This commit is contained in:
committed by
Niels Lyngsø
parent
06c073d74b
commit
8d6925b5b9
@@ -1,10 +1,20 @@
|
||||
import { UMB_USER_COLLECTION_ALIAS } from '../../collection/index.js';
|
||||
import { UMB_USER_ROOT_ENTITY_TYPE } from '../../entity.js';
|
||||
import { UmbEntityContext } from '@umbraco-cms/backoffice/entity';
|
||||
import { html, customElement } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
||||
|
||||
const elementName = 'umb-user-root-workspace';
|
||||
@customElement(elementName)
|
||||
export class UmbUserRootWorkspaceElement extends UmbLitElement {
|
||||
constructor() {
|
||||
super();
|
||||
// TODO: this.should happen automatically
|
||||
const entityContext = new UmbEntityContext(this);
|
||||
entityContext.setEntityType(UMB_USER_ROOT_ENTITY_TYPE);
|
||||
entityContext.setUnique(null);
|
||||
}
|
||||
|
||||
override render() {
|
||||
return html` <umb-body-layout main-no-padding headline="Users">
|
||||
<umb-collection alias=${UMB_USER_COLLECTION_ALIAS}></umb-collection>;
|
||||
|
||||
Reference in New Issue
Block a user