Merge pull request #42381 from nextcloud/fix/h1-element-rename-for-dashboard

enh(dashboard): changed h1 to say Dashboard instead of Nextcloud
pull/41582/head
Eduardo Morales 5 months ago committed by GitHub
commit d949fce1d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
*
@ -42,6 +43,7 @@ use OCP\Dashboard\IWidget;
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 @@ 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

Loading…
Cancel
Save