Removed the Media "dashboardCollection"
I need to check with @madsrasmussen and @nielslyngsoe if we still need the "dashboardCollection" extension type in the codebase? (As I can't see where else it was being used.)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import { UMB_MEDIA_DETAIL_REPOSITORY_ALIAS } from './media/repository/index.js';
|
||||
import type {
|
||||
ManifestDashboardCollection,
|
||||
ManifestSection,
|
||||
ManifestTypes,
|
||||
} from '@umbraco-cms/backoffice/extension-registry';
|
||||
@@ -19,24 +17,6 @@ const section: ManifestSection = {
|
||||
conditions: [],
|
||||
};
|
||||
|
||||
const dashboards: Array<ManifestDashboardCollection> = [
|
||||
{
|
||||
type: 'dashboardCollection',
|
||||
alias: 'Umb.Dashboard.MediaCollection',
|
||||
name: 'Media Dashboard',
|
||||
weight: 10,
|
||||
meta: {
|
||||
label: 'Media',
|
||||
pathname: 'media-management',
|
||||
repositoryAlias: UMB_MEDIA_DETAIL_REPOSITORY_ALIAS,
|
||||
},
|
||||
conditions: {
|
||||
sections: [sectionAlias],
|
||||
entityType: 'media',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
const menuSectionSidebarApp: ManifestTypes = {
|
||||
type: 'sectionSidebarApp',
|
||||
kind: 'menu',
|
||||
@@ -55,4 +35,4 @@ const menuSectionSidebarApp: ManifestTypes = {
|
||||
],
|
||||
};
|
||||
|
||||
export const manifests = [section, menuSectionSidebarApp, ...dashboards];
|
||||
export const manifests = [section, menuSectionSidebarApp];
|
||||
|
||||
Reference in New Issue
Block a user