stable

Clone or download

Read-only

Delete a widget

This is part of story #10173 Have multiple dashboards When you delete a widget: * its content is also deleted (for example entry in widget_image for ImageViewer) * if this is the last widget of the dashboard, then the dashboard displays an empty state * If widget is the last widget of a column, then the column is removed. ** If there was three columns in layout three-columns-small-small-big and the second column is removed, then the layout of the line becomes two-colum-small-big. This updates TLP to be able to use a button inside the dropdown instead of a link. Change-Id: I5cee1c5182e8f24673257609c1972a630d432806

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +6 −0 Go to diff View file
M site-content/tuleap-core.pot +6 −0 Go to diff View file
M src/common/Dashboard/Project/ProjectDashboardController.php +38 −1 Go to diff View file
M src/common/Dashboard/Project/ProjectDashboardRouter.php +3 −0 Go to diff View file
A src/common/Dashboard/Project/WidgetDeletor.php +51 −0 Go to diff View file
M src/common/Dashboard/User/UserDashboardController.php +37 −1 Go to diff View file
M src/common/Dashboard/User/UserDashboardRouter.php +3 −0 Go to diff View file
A src/common/Dashboard/User/WidgetDeletor.php +42 −0 Go to diff View file
M src/common/Dashboard/Widget/DashboardWidgetDao.php +221 −6 Go to diff View file
A src/common/Dashboard/Widget/WidgetNotFoundException.php +25 −0 Go to diff View file
M src/common/autoload.php +5 −2 Go to diff View file
M src/templates/dashboard/widgets.mustache +13 −4 Go to diff View file
M src/www/my/index.php +3 −1 Go to diff View file
M src/www/projects.php +3 −1 Go to diff View file
M src/www/themes/common/tlp/doc/resources/flyover/dropdowns/example.html +6 −6 Go to diff View file
M src/www/themes/common/tlp/src/scss/components/_dropdowns.scss +6 −0 Go to diff View file