From 94d122deabda6125a4e76a23140e498c402c5afb Mon Sep 17 00:00:00 2001 From: Eduardo Morales Date: Tue, 19 Dec 2023 10:01:21 -0600 Subject: [PATCH] enh(dashboard): changed h1 to say Dashboard instead of Nextcloud Signed-off-by: Eduardo Morales --- apps/dashboard/lib/Controller/DashboardController.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php index e72fde4b7bd02..02ae47fa91096 100644 --- a/apps/dashboard/lib/Controller/DashboardController.php +++ b/apps/dashboard/lib/Controller/DashboardController.php @@ -10,6 +10,7 @@ * @author Morris Jobke * @author Roeland Jago Douma * @author Kate Döen + * @author Eduardo Morales * * @license GNU AGPL version 3 or any later version * @@ -43,6 +44,7 @@ use OCP\EventDispatcher\IEventDispatcher; use OCP\IConfig; use OCP\IRequest; +use OCP\IL10N; #[IgnoreOpenAPI] class DashboardController extends Controller { @@ -55,6 +57,8 @@ class DashboardController extends Controller { private $dashboardManager; /** @var IConfig */ private $config; + /** @var IL10N */ + private $l10n; /** @var string */ private $userId; @@ -65,6 +69,7 @@ public function __construct( IEventDispatcher $eventDispatcher, IManager $dashboardManager, IConfig $config, + IL10N $l10n, $userId ) { parent::__construct($appName, $request); @@ -73,6 +78,7 @@ public function __construct( $this->eventDispatcher = $eventDispatcher; $this->dashboardManager = $dashboardManager; $this->config = $config; + $this->l10n = $l10n; $this->userId = $userId; } @@ -117,6 +123,7 @@ public function index(): TemplateResponse { $response = new TemplateResponse('dashboard', 'index', [ 'id-app-content' => '#app-dashboard', 'id-app-navigation' => null, + 'pageTitle' => $this->l10n->t('Dashboard'), ]); // For the weather widget we should allow the geolocation