From 4ba139fb1e278c85ced04a275d416324a259a93f Mon Sep 17 00:00:00 2001 From: rrooij Date: Sun, 19 May 2024 16:47:37 +0200 Subject: [PATCH] Remove listmonk item It is not used by any of the organizations. --- .env | 1 - config/services.yaml | 1 - src/Controller/Admin/DashboardController.php | 8 ++------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.env b/.env index 953f939..3486865 100644 --- a/.env +++ b/.env @@ -56,7 +56,6 @@ HOMEPAGE='roodjongeren.nl' ORGANIZATION_NAME_SHORT='ROOD' ORG_LOGO='assets/image/logo.png' PRIVACY_POLICY_URL='https://roodjongeren.nl/privacybeleid/' -LISTMONK_URL='https://listmonk.roodjongeren.nl/admin' USE_MIDDLE_NAME=true CONTRIBUTION_ENABLED=true diff --git a/config/services.yaml b/config/services.yaml index 124a5f6..2cd1dfb 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -12,7 +12,6 @@ parameters: app.homepageUrl: '%env(HOMEPAGE)%' app.orgLogo: '%env(ORG_LOGO)%' app.privacyPolicyUrl: '%env(PRIVACY_POLICY_URL)%' - app.listmonkUrl: '%env(string:LISTMONK_URL)%' app.useMiddleName: '%env(bool:USE_MIDDLE_NAME)%' app.contributionEnabled: '%env(bool:CONTRIBUTION_ENABLED)%' router.request_context.scheme: '%env(SECURE_SCHEME)%' diff --git a/src/Controller/Admin/DashboardController.php b/src/Controller/Admin/DashboardController.php index 6c0b8bc..acfccdb 100644 --- a/src/Controller/Admin/DashboardController.php +++ b/src/Controller/Admin/DashboardController.php @@ -49,10 +49,7 @@ public function configureCrud(): Crud { public function configureMenuItems(): iterable { - $listmonkUrl = $this->getParameter('app.listmonkUrl'); - $listmonkItem = $listmonkUrl ? [MenuItem::linkToUrl('Listmonk', 'fa fa-mail-bulk', $listmonkUrl)->setPermission('ROLE_ADMIN')] : []; - - return array_merge([ + return [ MenuItem::linkToDashboard('Dashboard', 'fa fa-home'), MenuItem::section('Website')->setPermission('ROLE_ADMIN'), @@ -68,11 +65,10 @@ public function configureMenuItems(): iterable MenuItem::section('Technisch')->setPermission('ROLE_ADMIN'), MenuItem::linkToCrud('E-mailadressen', 'fa fa-at', Email::class)->setPermission('ROLE_ADMIN'), MenuItem::linkToCrud('E-maildomeinen', 'fa fa-globe', EmailDomain::class)->setPermission('ROLE_ADMIN'), - ], $listmonkItem, [ MenuItem::section(''), MenuItem::linkToRoute('Home', 'fa fa-arrow-left', 'member_home'), MenuItem::linkToRoute('Statistieken', 'fa fa-bar-chart', 'admin_statistics')->setPermission('ROLE_ADMIN'), MenuItem::linkToLogout('Uitloggen', 'fa fa-lock') - ]); + ]; } }