align aliases
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { DOCUMENT_REPOSITORY_ALIAS } from '../repository/manifests';
|
||||
import { UmbCreateDocumentEntityAction } from './create.action';
|
||||
import { UmbPublishDocumentEntityAction } from './publish.action';
|
||||
import { UmbDocumentCultureAndHostnamesEntityAction } from './culture-and-hostnames.action';
|
||||
@@ -15,7 +16,6 @@ import {
|
||||
import { ManifestEntityAction } from '@umbraco-cms/extensions-registry';
|
||||
|
||||
const entityType = 'document';
|
||||
const repositoryAlias = 'Umb.Repository.Documents';
|
||||
|
||||
const entityActions: Array<ManifestEntityAction> = [
|
||||
{
|
||||
@@ -27,7 +27,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:add',
|
||||
label: 'Create',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbCreateDocumentEntityAction,
|
||||
},
|
||||
},
|
||||
@@ -40,7 +40,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:trash',
|
||||
label: 'Trash',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbTrashEntityAction,
|
||||
},
|
||||
},
|
||||
@@ -53,7 +53,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:blueprint',
|
||||
label: 'Create Content Template',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbCreateDocumentBlueprintEntityAction,
|
||||
},
|
||||
},
|
||||
@@ -66,7 +66,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:enter',
|
||||
label: 'Move',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbMoveEntityAction,
|
||||
},
|
||||
},
|
||||
@@ -79,7 +79,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:documents',
|
||||
label: 'Copy',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbCopyEntityAction,
|
||||
},
|
||||
},
|
||||
@@ -92,7 +92,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:navigation-vertical',
|
||||
label: 'Sort',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbSortChildrenOfEntityAction,
|
||||
},
|
||||
},
|
||||
@@ -105,7 +105,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:home',
|
||||
label: 'Culture And Hostnames',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbDocumentCultureAndHostnamesEntityAction,
|
||||
},
|
||||
},
|
||||
@@ -117,7 +117,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:vcard',
|
||||
label: 'Permissions',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbDocumentPermissionsEntityAction,
|
||||
},
|
||||
},
|
||||
@@ -129,7 +129,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:lock',
|
||||
label: 'Public Access',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbDocumentPublicAccessEntityAction,
|
||||
},
|
||||
},
|
||||
@@ -141,7 +141,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:globe',
|
||||
label: 'Publish',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbPublishDocumentEntityAction,
|
||||
},
|
||||
},
|
||||
@@ -153,7 +153,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:globe',
|
||||
label: 'Unpublish',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbUnpublishDocumentEntityAction,
|
||||
},
|
||||
},
|
||||
@@ -165,7 +165,7 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
entityType,
|
||||
icon: 'umb:undo',
|
||||
label: 'Rollback',
|
||||
repositoryAlias,
|
||||
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
||||
api: UmbRollbackDocumentEntityAction,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@ import { UmbDocumentTreeStore } from './document.tree.store';
|
||||
import { ManifestRepository } from 'libs/extensions-registry/repository.models';
|
||||
import { ManifestStore, ManifestTreeStore } from '@umbraco-cms/extensions-registry';
|
||||
|
||||
export const DOCUMENT_REPOSITORY_ALIAS = 'Umb.Repository.Documents';
|
||||
export const DOCUMENT_REPOSITORY_ALIAS = 'Umb.Repository.Document';
|
||||
|
||||
const repository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
|
||||
Reference in New Issue
Block a user