mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
updated
This commit is contained in:
parent
3e3b996963
commit
8dd118bd86
@ -23,7 +23,6 @@ export default class PanelMeta {
|
|||||||
this.addMenuItem('Edit', 'icon-cog', 'editPanel(); dismiss();', 'Editor');
|
this.addMenuItem('Edit', 'icon-cog', 'editPanel(); dismiss();', 'Editor');
|
||||||
this.addMenuItem('Duplicate', 'icon-copy', 'duplicatePanel()', 'Editor');
|
this.addMenuItem('Duplicate', 'icon-copy', 'duplicatePanel()', 'Editor');
|
||||||
this.addMenuItem('Share', 'icon-share', 'sharePanel(); dismiss();');
|
this.addMenuItem('Share', 'icon-share', 'sharePanel(); dismiss();');
|
||||||
|
|
||||||
this.addEditorTab('General', 'app/partials/panelgeneral.html');
|
this.addEditorTab('General', 'app/partials/panelgeneral.html');
|
||||||
|
|
||||||
if (options.metricsEditor) {
|
if (options.metricsEditor) {
|
||||||
|
@ -15,7 +15,6 @@ class PanelBaseCtrl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class TestPanelCtrl extends PanelBaseCtrl {
|
class TestPanelCtrl extends PanelBaseCtrl {
|
||||||
|
|
||||||
constructor($scope) {
|
constructor($scope) {
|
||||||
super($scope);
|
super($scope);
|
||||||
$scope.panelMeta.panelName = "Test";
|
$scope.panelMeta.panelName = "Test";
|
||||||
@ -32,7 +31,8 @@ function testPanelDirective() {
|
|||||||
</div>
|
</div>
|
||||||
</grafana-panel>
|
</grafana-panel>
|
||||||
`,
|
`,
|
||||||
controller: TestPanelCtrl
|
controller: TestPanelCtrl,
|
||||||
|
controllerAs: 'ctrl',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user