Skip to content

Commit

Permalink
enh(dashboard): changed h1 to say Dashboard instead of Nextcloud
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
  • Loading branch information
emoral435 authored and backportbot-nextcloud[bot] committed Dec 20, 2023
1 parent 42dee2e commit 4628000
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/dashboard/lib/Controller/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* @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
*
Expand Down Expand Up @@ -43,6 +44,7 @@
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IConfig;
use OCP\IRequest;
use OCP\IL10N;

#[IgnoreOpenAPI]
class DashboardController extends Controller {
Expand All @@ -55,6 +57,8 @@ class DashboardController extends Controller {
private $dashboardManager;
/** @var IConfig */
private $config;
/** @var IL10N */
private $l10n;
/** @var string */
private $userId;

Expand All @@ -65,6 +69,7 @@ public function __construct(
IEventDispatcher $eventDispatcher,
IManager $dashboardManager,
IConfig $config,
IL10N $l10n,
$userId
) {
parent::__construct($appName, $request);
Expand All @@ -73,6 +78,7 @@ public function __construct(
$this->eventDispatcher = $eventDispatcher;
$this->dashboardManager = $dashboardManager;
$this->config = $config;
$this->l10n = $l10n;
$this->userId = $userId;
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4628000

Please sign in to comment.