diff options
author | Eduardo Morales <emoral435@gmail.com> | 2023-12-19 10:01:21 -0600 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-12-20 22:37:05 +0000 |
commit | 4628000ca2ea2b3deb890f686a77477e56d63ad0 (patch) | |
tree | 6d810a711074ed2d17dd2a71e3d01be67dcaacec | |
parent | 42dee2e29f0153bbb15a0d0fe1350d766ae68f18 (diff) | |
download | nextcloud-server-4628000ca2ea2b3deb890f686a77477e56d63ad0.tar.gz nextcloud-server-4628000ca2ea2b3deb890f686a77477e56d63ad0.zip |
enh(dashboard): changed h1 to say Dashboard instead of Nextcloud
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
-rw-r--r-- | apps/dashboard/lib/Controller/DashboardController.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php index e72fde4b7bd..02ae47fa910 100644 --- a/apps/dashboard/lib/Controller/DashboardController.php +++ b/apps/dashboard/lib/Controller/DashboardController.php @@ -10,6 +10,7 @@ declare(strict_types=1); * @author Morris Jobke <hey@morrisjobke.de> * @author Roeland Jago Douma <roeland@famdouma.nl> * @author Kate Döen <kate.doeen@nextcloud.com> + * @author Eduardo Morales <eduardo.morales@nextcloud.com> * * @license GNU AGPL version 3 or any later version * @@ -43,6 +44,7 @@ use OCP\Dashboard\RegisterWidgetEvent; 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 @@ class DashboardController extends Controller { IEventDispatcher $eventDispatcher, IManager $dashboardManager, IConfig $config, + IL10N $l10n, $userId ) { parent::__construct($appName, $request); @@ -73,6 +78,7 @@ class DashboardController extends Controller { $this->eventDispatcher = $eventDispatcher; $this->dashboardManager = $dashboardManager; $this->config = $config; + $this->l10n = $l10n; $this->userId = $userId; } @@ -117,6 +123,7 @@ class DashboardController extends Controller { $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 |