Browse Source
Merge pull request #25309 from nextcloud/enh/dashboard-default-layout
Add config to specify a default dashboard layout
pull/25335/head
Roeland Jago Douma
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
apps/dashboard/lib/Controller/DashboardController.php
|
|
|
@ -99,7 +99,8 @@ class DashboardController extends Controller { |
|
|
|
|
|
|
|
$this->eventDispatcher->dispatchTyped(new RegisterWidgetEvent($this->dashboardManager)); |
|
|
|
|
|
|
|
$userLayout = explode(',', $this->config->getUserValue($this->userId, 'dashboard', 'layout', 'recommendations,spreed,mail,calendar')); |
|
|
|
$systemDefault = $this->config->getAppValue('dashboard', 'layout', 'recommendations,spreed,mail,calendar'); |
|
|
|
$userLayout = explode(',', $this->config->getUserValue($this->userId, 'dashboard', 'layout', $systemDefault)); |
|
|
|
$widgets = array_map(function (IWidget $widget) { |
|
|
|
return [ |
|
|
|
'id' => $widget->getId(), |
|
|
|
|