File tree Expand file tree Collapse file tree 6 files changed +25
-11
lines changed
src/packages/documents/document-blueprints
reload-tree-item-children Expand file tree Collapse file tree 6 files changed +25
-11
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class UmbCreateEntityAction extends UmbEntityActionBase<never> {
26
26
const documentTypeUnique = modalContext . getValue ( ) . documentTypeUnique ;
27
27
if ( ! documentTypeUnique ) return ;
28
28
29
- const url = `section/settings/workspace/${ UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE } /create/parent/${ UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE } /${ this . args . unique ?? 'null' } /${ documentTypeUnique } ` ;
29
+ const url = `section/settings/workspace/${ UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE } /create/parent/${ this . args . entityType } /${ this . args . unique ?? 'null' } /${ documentTypeUnique } ` ;
30
30
history . pushState ( null , '' , url ) ;
31
31
}
32
32
}
Original file line number Diff line number Diff line change 1
- import { UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE , UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE } from '../../entity.js' ;
1
+ import { UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE , UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE } from '../../entity.js' ;
2
2
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry' ;
3
3
4
4
const entityActions : Array < ManifestTypes > = [
@@ -9,7 +9,7 @@ const entityActions: Array<ManifestTypes> = [
9
9
name : 'Document Blueprint Options Create Entity Action' ,
10
10
weight : 1200 ,
11
11
api : ( ) => import ( './create.action.js' ) ,
12
- forEntityTypes : [ UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE , UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE ] ,
12
+ forEntityTypes : [ UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE , UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE ] ,
13
13
meta : {
14
14
icon : 'icon-add' ,
15
15
label : '#actions_createblueprint' ,
Original file line number Diff line number Diff line change 1
- import { UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE } from '../entity.js' ;
1
+ import { UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE } from '../entity.js' ;
2
2
import { UmbDocumentBlueprintTreeServerDataSource } from './document-blueprint-tree.server.data-source.js' ;
3
3
import { UMB_DOCUMENT_BLUEPRINT_TREE_STORE_CONTEXT } from './document-blueprint-tree.store.js' ;
4
4
import type { UmbDocumentBlueprintTreeItemModel , UmbDocumentBlueprintTreeRootModel } from './types.js' ;
@@ -20,7 +20,7 @@ export class UmbDocumentBlueprintTreeRepository
20
20
21
21
const data : UmbDocumentBlueprintTreeRootModel = {
22
22
unique : null ,
23
- entityType : UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE ,
23
+ entityType : UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE ,
24
24
name : 'Document Blueprints' ,
25
25
hasChildren,
26
26
isFolder : true ,
Original file line number Diff line number Diff line change 1
- import { UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE , UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE } from '../entity.js' ;
1
+ import {
2
+ UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE ,
3
+ UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE ,
4
+ UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE ,
5
+ } from '../entity.js' ;
2
6
import {
3
7
UMB_DOCUMENT_BLUEPRINT_TREE_ALIAS ,
4
8
UMB_DOCUMENT_BLUEPRINT_TREE_REPOSITORY_ALIAS ,
@@ -45,7 +49,11 @@ const treeItem: ManifestTreeItem = {
45
49
kind : 'default' ,
46
50
alias : 'Umb.TreeItem.DocumentBlueprint' ,
47
51
name : 'Document Blueprint Tree Item' ,
48
- forEntityTypes : [ UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE , UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE ] ,
52
+ forEntityTypes : [
53
+ UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE ,
54
+ UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE ,
55
+ UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE ,
56
+ ] ,
49
57
} ;
50
58
51
59
export const manifests : Array < ManifestTypes > = [
Original file line number Diff line number Diff line change 1
- import { UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE , UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE } from '../../entity.js' ;
1
+ import { UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE , UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE } from '../../entity.js' ;
2
2
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry' ;
3
3
4
4
export const manifests : Array < ManifestTypes > = [
@@ -7,7 +7,7 @@ export const manifests: Array<ManifestTypes> = [
7
7
kind : 'reloadTreeItemChildren' ,
8
8
alias : 'Umb.EntityAction.DocumentBlueprint.Tree.ReloadChildrenOf' ,
9
9
name : 'Reload Document Blueprint Tree Item Children Entity Action' ,
10
- forEntityTypes : [ UMB_DOCUMENT_BLUEPRINT_ENTITY_TYPE , UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE ] ,
10
+ forEntityTypes : [ UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE , UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE ] ,
11
11
meta : { } ,
12
12
} ,
13
13
] ;
Original file line number Diff line number Diff line change 1
- import type { UmbDocumentBlueprintEntityType , UmbDocumentBlueprintFolderEntityType } from '../entity.js' ;
1
+ import type {
2
+ UmbDocumentBlueprintEntityType ,
3
+ UmbDocumentBlueprintFolderEntityType ,
4
+ UmbDocumentBlueprintRootEntityType ,
5
+ } from '../entity.js' ;
2
6
import type { UmbTreeItemModel , UmbTreeRootModel } from '@umbraco-cms/backoffice/tree' ;
3
7
4
- export interface UmbDocumentBlueprintTreeRootModel extends UmbTreeRootModel { }
8
+ export interface UmbDocumentBlueprintTreeRootModel extends UmbTreeRootModel {
9
+ entityType : UmbDocumentBlueprintRootEntityType ;
10
+ }
5
11
6
12
export interface UmbDocumentBlueprintTreeItemModel extends UmbTreeItemModel {
7
13
entityType : UmbDocumentBlueprintEntityType | UmbDocumentBlueprintFolderEntityType ;
You can’t perform that action at this time.
0 commit comments