1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00
phorge-phorge/webroot/rsrc/js/application/dashboard
epriestley cbe13b3065 When editing a tab panel from a dashboard, redirect back to the dashboard
Summary:
Depends on D20396. Ref T13272. Currently, using the dropdowns to edit a tab panel from a dashboard redirects you to the tab panel page.

Instead, redirect back to the context page (usually, a dashboard -- but theoretically a containing tab panel, since you can put tab panels inside tab panels).

Also, fix some JS issues with non-integer panel keys. I've moved panel keys from "0, 1, 2, ..." to having arbitrary keys to make some operations less flimsy/error-prone, but this needs some JS tweaks.

Test Plan: Edited a tab panel from a dashboard, got sent sensibly back to the dashboard.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13272

Differential Revision: https://secure.phabricator.com/D20397
2019-04-12 06:13:12 -07:00
..
behavior-dashboard-async-panel.js Dashboards - add remove functionality 2014-05-19 14:04:26 -07:00
behavior-dashboard-move-panels.js Restrict movable panels to non-tab panels 2017-02-14 14:15:59 -08:00
behavior-dashboard-query-panel-select.js Fix various spelling mistakes 2014-07-13 00:45:33 +10:00
behavior-dashboard-tab-panel.js When editing a tab panel from a dashboard, redirect back to the dashboard 2019-04-12 06:13:12 -07:00