From a45d18a9f4e762a4cd9faccc995515facb60b1ee Mon Sep 17 00:00:00 2001 From: leekelleher Date: Tue, 20 Feb 2024 17:53:22 +0000 Subject: [PATCH] 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.) --- .../src/packages/media/section.manifests.ts | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/media/section.manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/media/section.manifests.ts index 0baeeb6770..3925bb00f7 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/media/section.manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/media/section.manifests.ts @@ -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 = [ - { - 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];