update models
This commit is contained in:
@@ -3,10 +3,14 @@ import { DataTypeEntity } from '../../../mocks/data/data-type.data';
|
||||
|
||||
export class UmbDataTypeContext {
|
||||
// TODO: figure out how fine grained we want to make our observables.
|
||||
private _data: BehaviorSubject<DataTypeEntity> = new BehaviorSubject({
|
||||
id: -1,
|
||||
private _data = new BehaviorSubject<DataTypeEntity>({
|
||||
key: '',
|
||||
name: '',
|
||||
icon: '',
|
||||
type: '',
|
||||
hasChildren: false,
|
||||
parentKey: '',
|
||||
isTrashed: false,
|
||||
propertyEditorUIAlias: '',
|
||||
});
|
||||
public readonly data: Observable<DataTypeEntity> = this._data.asObservable();
|
||||
|
||||
@@ -3,10 +3,14 @@ import { DocumentTypeEntity } from '../../../mocks/data/document-type.data';
|
||||
|
||||
export class UmbDocumentTypeContext {
|
||||
// TODO: figure out how fine grained we want to make our observables.
|
||||
private _data: BehaviorSubject<DocumentTypeEntity> = new BehaviorSubject({
|
||||
id: -1,
|
||||
private _data = new BehaviorSubject<DocumentTypeEntity>({
|
||||
key: '',
|
||||
name: '',
|
||||
icon: '',
|
||||
type: '',
|
||||
hasChildren: false,
|
||||
parentKey: '',
|
||||
isTrashed: false,
|
||||
alias: '',
|
||||
properties: [],
|
||||
});
|
||||
|
||||
@@ -3,12 +3,14 @@ import { NodeEntity } from '../../../../mocks/data/node.data';
|
||||
|
||||
export class UmbNodeContext {
|
||||
// TODO: figure out how fine grained we want to make our observables.
|
||||
private _data: BehaviorSubject<NodeEntity> = new BehaviorSubject({
|
||||
id: -1,
|
||||
private _data = new BehaviorSubject<NodeEntity>({
|
||||
key: '',
|
||||
name: '',
|
||||
type: '',
|
||||
icon: '',
|
||||
type: '',
|
||||
hasChildren: false,
|
||||
parentKey: '',
|
||||
isTrashed: false,
|
||||
properties: [
|
||||
{
|
||||
alias: '',
|
||||
|
||||
@@ -67,7 +67,7 @@ export class UmbTreeContextMenuPageActionListElement extends UmbContextConsumerM
|
||||
|
||||
this._treeItemActionsSubscription = this._extensionRegistry
|
||||
?.extensionsOfType('treeItemAction')
|
||||
.pipe(map((actions) => actions.filter((action) => action.meta.trees.includes(this._activeTree?.alias))))
|
||||
.pipe(map((actions) => actions.filter((action) => action.meta.trees.includes(this._activeTree?.alias || ''))))
|
||||
.subscribe((actions) => {
|
||||
this._actions = actions;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user