13588 Commits

Author SHA1 Message Date
Johannes Meyer
a3ee130be3 Change handling of the params showCompact and limit
* The editor should provide the full url in the title,
  to show the user the same view as in the dashboard.
* In the dashboard, `limit` and now also `view` need
  to be removed from the title's link. The user isn't
  editing and should see the default view.
2022-04-21 11:51:53 +02:00
Johannes Meyer
e588596d9e DashboardsController: Use $this->getServerRequest() where applicable 2022-04-20 16:46:24 +02:00
Johannes Meyer
7b90d0935a dashboards/settings: Don't change refresh url due to re-order 2022-04-20 15:13:57 +02:00
Johannes Meyer
33eaccf5b4 Menu: Don't translate home titles
Homes can't be provided by modules, so there's no way
that a translation exists.
2022-04-20 14:37:54 +02:00
Johannes Meyer
7aa34bb444 DashboardControls: Ensure to use sorted entries in rewindEntries() 2022-04-20 12:57:01 +02:00
Johannes Meyer
63802dfc45 Decouple menu and dashboard code 2022-04-20 12:56:35 +02:00
Johannes Meyer
8df2c9ea8c layout.less: Fully remove letter-spacing from .dashboard
Since ipl-html is used now, there is no whitespace between
tags which gets rendered due to display:inline-block.
2022-04-19 14:11:44 +02:00
Johannes Meyer
757a28bf4f dashboard.js: Only handle rendered events we're interested in 2022-04-19 13:41:50 +02:00
Yonas Habteab
8ed9af5746 dashboards.js: Don't use a variable for handle 2022-04-14 15:35:00 +02:00
Yonas Habteab
61213b23a2 dashboards.js: Don't delay drag&drop events anymore 2022-04-14 14:53:34 +02:00
Yonas Habteab
d8de5d71d6 Make the bars icon a bit bigger 2022-04-14 14:49:49 +02:00
Yonas Habteab
c71f738b31 Use spaceship operator for sorting assoc arrays 2022-04-14 14:31:57 +02:00
Yonas Habteab
7b22be2b28 Use handle icon to initiate the drag&drop events 2022-04-14 14:21:27 +02:00
Yonas Habteab
d95c754f85 DashboardsController: Perform a full reload when the drop action couldn't be performed successfully 2022-04-14 14:07:49 +02:00
Yonas Habteab
b39f6ad48e Don't render the initial modal view over again when autosubmitting the form 2022-04-14 13:47:41 +02:00
Yonas Habteab
737f1d459a DashletForm: Ensure to dump unselected dashlets before updating the DB 2022-04-14 10:42:27 +02:00
Yonas Habteab
49b37ea522 Merge some related classes 2022-04-14 09:45:31 +02:00
Yonas Habteab
1429d4aa65 Fix code styling issue 2022-04-13 19:47:06 +02:00
Yonas Habteab
372ffa15c0 Allow browsing predefined dashlets when creating a new dashlet 2022-04-13 19:38:25 +02:00
Yonas Habteab
40092ef57c Fix return type mismatch 2022-04-13 15:03:18 +02:00
Yonas Habteab
037adcb975 Regroup dashboard input elements 2022-04-13 14:46:47 +02:00
Yonas Habteab
09b87eac90 Update mysql upgrade script 2022-04-13 14:19:29 +02:00
Yonas Habteab
89b0b4db57 Fix accessing method on null 2022-04-13 14:16:55 +02:00
Yonas Habteab
167d6c709c forms.less: Undo changed button styles 2022-04-13 12:28:22 +02:00
Yonas Habteab
a9b59d42ae Simulate removal of dashboard home Default Home 2022-04-13 12:27:06 +02:00
Yonas Habteab
9d2e90f93c Use own activate() method to activate dashboards 2022-04-12 19:06:38 +02:00
Yonas Habteab
f3dc6301ff Use setTitle() instead of setting resp headrs directly 2022-04-12 15:30:59 +02:00
Yonas Habteab
a79e83cc24 Remove obsolete button styles & add a proper button class names 2022-04-12 15:30:59 +02:00
Yonas Habteab
fb54ed9b37 form.less: Adjust remove & cancel button style sheets 2022-04-12 15:30:59 +02:00
Yonas Habteab
a34dc9a8cf Adjust how module dashlets are handled 2022-04-12 15:30:59 +02:00
Yonas Habteab
217faab3fc Wrap getConn() into a try catch to prevent the menu from being broken 2022-04-12 15:30:59 +02:00
Yonas Habteab
a1ed493ad1 Clean up codes 2022-04-12 15:30:59 +02:00
Yonas Habteab
da4edb2274 Module: undo removed import 2022-04-12 15:30:59 +02:00
Yonas Habteab
d979d41ead Use sendMultipartUpdate() for drag&drop actions & adjust some css styles 2022-04-12 15:30:59 +02:00
Yonas Habteab
4fb6002a5d dashboard.js: Fix moving a dashlet to another home/pane throws an error 2022-04-12 15:30:59 +02:00
Yonas Habteab
69fe8f7755 Menu: Swallow silently any DB issue in the main menu 2022-04-12 15:30:59 +02:00
Yonas Habteab
01280e6cb1 Fix typo 2022-04-12 15:30:59 +02:00
Yonas Habteab
595b4bead2 Introduce new-home action 2022-04-12 15:30:59 +02:00
Yonas Habteab
2162392721 BaseDashboardForm: Make cancel-button of type button 2022-04-12 15:30:59 +02:00
Yonas Habteab
1f9d0547cd Adjust dashbaord conent layouts & don't redirect when sorting only dashlets 2022-04-12 15:30:59 +02:00
Yonas Habteab
96fbd28c56 DashletForm: Ensure to pre-select a dashboard when clicking add-dashlet 2022-04-12 15:30:59 +02:00
Yonas Habteab
f6d2664c21 DeshletForm: Don't re-populate dashboard pane element 2022-04-12 15:30:59 +02:00
Yonas Habteab
629636ae95 events.js: Adjust dashlets loading to the new dashlet layout 2022-04-12 15:30:59 +02:00
Yonas Habteab
652d432e54 Schema: Introduce 2.11.sql upgrade schema 2022-04-12 15:30:59 +02:00
Yonas Habteab
231b4ceef5 Schema: Merge dashboards.sql to the icingaweb2 schema 2022-04-12 15:30:59 +02:00
Yonas Habteab
023ea0909f dashboard.js: Fix drag&drop doesn't work for dashboards if there is no home rendered 2022-04-12 15:30:59 +02:00
Yonas Habteab
b1c07d8122 Remove empty line 2022-04-12 15:30:59 +02:00
Yonas Habteab
adf2013c23 Fix some code styles and comments 2022-04-12 15:30:59 +02:00
Yonas Habteab
876c1097bd Module: Revert changed and removed legacy codes 2022-04-12 15:30:59 +02:00
Yonas Habteab
41f1ac4a90 Use Menu class instead of HomeMenu 2022-04-12 15:30:59 +02:00