Commit 2b06ceda by bergquist

feat(panels): adds queryparameter for choose active tab in edit mode

parent 1bb4ca22
...@@ -90,6 +90,15 @@ export class PanelCtrl { ...@@ -90,6 +90,15 @@ export class PanelCtrl {
this.addEditorTab('General', 'public/app/partials/panelgeneral.html'); this.addEditorTab('General', 'public/app/partials/panelgeneral.html');
this.editModeInitiated = true; this.editModeInitiated = true;
this.events.emit('init-edit-mode', null); this.events.emit('init-edit-mode', null);
var route = this.$injector.get('$route');
if (route.current.params.editorTab) {
this.editorTabs.forEach((tab, i) => {
if (tab.title === route.current.params.editorTab) {
this.editorTabIndex = i;
}
});
}
} }
addEditorTab(title, directiveFn, index?) { addEditorTab(title, directiveFn, index?) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment