Remove trackster related legacy panel handling

This commit is contained in:
guerler
2022-08-26 15:40:13 -04:00
parent 551d1038a3
commit b9640645ba
5 changed files with 0 additions and 50 deletions
-1
View File
@@ -74,7 +74,6 @@ export function chart(options) {
}
export { initMasthead } from "components/Masthead/initMasthead";
export { panelManagement } from "onload/globalInits/panelManagement";
export { mountMakoTags } from "components/Tags";
export { mountWorkflowEditor } from "components/Workflow/Editor/mount";
export { mountPageEditor } from "components/PageEditor/mount";
@@ -1,36 +0,0 @@
/**
* Panel management code transplanted from base.mako
* TODO: figure out when these functions fire
*
* @param {} panelConfig
*/
export function panelManagement(panelConfig) {
console.log("panelManagement");
console.log("(looks like it's assinging some global handlers to window to manage the left and right panel views?)");
const { left_panel, right_panel, rightPanelSelector, leftPanelSelector } = panelConfig;
if (left_panel) {
var lp = new window.bundleEntries.panels.LeftPanel({
el: leftPanelSelector,
});
window.force_left_panel = function (x) {
console.log("window.force_left_panel fired");
lp.force_panel(x);
};
}
if (right_panel) {
var rp = new window.bundleEntries.panels.RightPanel({
el: rightPanelSelector,
});
window.handle_minwidth_hint = function (x) {
console.log("window.handle_minwidth_hint", x);
rp.handle_minwidth_hint(x);
};
window.force_right_panel = function (x) {
console.log("window.force_right_panel", x);
rp.force_panel(x);
};
}
}
-11
View File
@@ -138,14 +138,6 @@ export class TracksterUI extends Backbone.Model {
);
},
},
{
icon_class: "bookmarks",
title: _l("Bookmarks"),
on_click: () => {
// HACK -- use style to determine if panel is hidden and hide/show accordingly.
window.force_right_panel($("div#right").css("right") == "0px" ? "hide" : "show");
},
},
{
icon_class: "globe",
title: _l("Circster"),
@@ -395,9 +387,6 @@ export class TracksterUIView extends Backbone.View {
this.ui.view.resize_window();
});
// hide right panel
window.force_right_panel("hide");
// check if id is available
if (window.galaxy_config.app.id) {
this.view_existing();
-1
View File
@@ -60,7 +60,6 @@
// "late javascripts"
config.addInitialization(function() {
console.log("base/base_panels.mako, panel init");
window.bundleEntries.panelManagement(panelConfig);
});
</script>
@@ -197,7 +197,6 @@
config.addInitialization(function() {
console.log("base/base_panels.mako, panel init");
window.bundleEntries.panelManagement(panelConfig);
});
config.addInitialization(function() {