Skip to content

Commit

Permalink
Merge pull request #184 from roodjong/fix/remove-listmonk
Browse files Browse the repository at this point in the history
Remove listmonk item
  • Loading branch information
Nowa-Ammerlaan authored May 19, 2024
2 parents 7058e92 + 4ba139f commit 29e7733
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)%'
Expand Down
8 changes: 2 additions & 6 deletions src/Controller/Admin/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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')
]);
];
}
}

0 comments on commit 29e7733

Please sign in to comment.