mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-27 07:50:57 +01:00
d9058d7f3f
Summary: To get there, upgrade "headerless" to "headerMode". Add a new removepanel controller. Fixes T5084. Test Plan: removed some panels to much success Reviewers: chad, epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T5078, T5084 Differential Revision: https://secure.phabricator.com/D9156
24 lines
574 B
JavaScript
24 lines
574 B
JavaScript
/**
|
|
* @provides javelin-behavior-dashboard-async-panel
|
|
* @requires javelin-behavior
|
|
* javelin-dom
|
|
* javelin-workflow
|
|
*/
|
|
|
|
JX.behavior('dashboard-async-panel', function(config) {
|
|
var panel = JX.$(config.panelID);
|
|
panel.style.opacity = '0.5';
|
|
|
|
var data = {
|
|
parentPanelPHIDs: config.parentPanelPHIDs.join(','),
|
|
headerMode: config.headerMode,
|
|
dashboardID: config.dashboardID
|
|
};
|
|
|
|
new JX.Workflow(config.uri)
|
|
.setData(data)
|
|
.setHandler(function(r) {
|
|
JX.DOM.replace(panel, JX.$H(r.panelMarkup));
|
|
})
|
|
.start();
|
|
});
|