-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42413 from nextcloud/backport/42381/stable28
[stable28] enh(dashboard): changed h1 to say Dashboard instead of Nextcloud
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
* @author Morris Jobke <[email protected]> | ||
* @author Roeland Jago Douma <[email protected]> | ||
* @author Kate Döen <[email protected]> | ||
* @author Eduardo Morales <[email protected]> | ||
* | ||
* @license GNU AGPL version 3 or any later version | ||
* | ||
|
@@ -42,6 +43,7 @@ | |
use OCP\Dashboard\RegisterWidgetEvent; | ||
use OCP\EventDispatcher\IEventDispatcher; | ||
use OCP\IConfig; | ||
use OCP\IL10N; | ||
use OCP\IRequest; | ||
|
||
#[IgnoreOpenAPI] | ||
|
@@ -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 | ||
|