mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 20:54:22 -06:00
feat(panels): adds queryparameter for choose active tab in edit mode
This commit is contained in:
parent
1bb4ca22e7
commit
2b06ceda71
@ -90,6 +90,15 @@ export class PanelCtrl {
|
||||
this.addEditorTab('General', 'public/app/partials/panelgeneral.html');
|
||||
this.editModeInitiated = true;
|
||||
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?) {
|
||||
|
Loading…
Reference in New Issue
Block a user