Config option for global default dashboard (#4080)

* Config option for global default dashboard

Add config option to set a global default dashbord.  This will be used
instead of the user's "Default" dashboard unless they have changed their
default dashboard in their user settings.

* Use a dropdown for the default_dashboard option

Update generate_dynamic_config_panel to allow assoc arrays with
`'value'` and `'description'` as keys and change to a select box.

* Fix PHP style issues lost during merge
This commit is contained in:
Eldon Koyle
2016-08-23 12:37:12 -06:00
committed by Neil Lathwood
parent 0b57b1ef69
commit 787c4f09f7
5 changed files with 59 additions and 7 deletions

1
sql-schema/130.sql Normal file
View File

@@ -0,0 +1 @@
INSERT INTO `config` (`config_name`,`config_value`,`config_default`,`config_descr`,`config_group`,`config_group_order`,`config_sub_group`,`config_sub_group_order`,`config_hidden`,`config_disabled`) VALUES ('webui.default_dashboard_id','0','0','Global default dashboard_id for all users who do not have their own default set','webui',0,'dashboard',0,'0','0');