fix(): singlestat init

This commit is contained in:
Torkel Ödegaard
2016-03-23 13:02:37 +01:00
parent b3c073ab6c
commit 4058c85e2a
@@ -57,11 +57,10 @@ class SingleStatCtrl extends MetricsPanelCtrl {
this.events.on('data-received', this.onDataReceived.bind(this));
this.events.on('data-error', this.onDataError.bind(this));
this.events.on('data-snapshot-load', this.onDataSnapshotLoad.bind(this));
this.events.on('init-edit-mode', this.onInitEditMode.bind(this));
}
initEditMode() {
super.initEditMode();
this.icon = "fa fa-dashboard";
onInitEditMode() {
this.fontSizes = ['20%', '30%','50%','70%','80%','100%', '110%', '120%', '150%', '170%', '200%'];
this.addEditorTab('Options', 'public/app/plugins/panel/singlestat/editor.html', 2);
this.unitFormats = kbn.getUnitFormats();