Browse Source

fix Failed to load template #157

master
Coin de Gamma 6 years ago
parent
commit
c41e1f4c2c
  1. 4
      src/panel/graph_panel/graph_ctrl.ts

4
src/panel/graph_panel/graph_ctrl.ts

@ -272,7 +272,7 @@ class GraphCtrl extends MetricsPanelCtrl {
this._updatePanelInfo(); this._updatePanelInfo();
this.analyticsController.updateServerInfo(); this.analyticsController.updateServerInfo();
const partialPath = this.panelPath + 'partials/graph_panel'; const partialPath = this.panelPath + '/partials';
this.addEditorTab('Analytics', `${partialPath}/tab_analytics.html`, 2); this.addEditorTab('Analytics', `${partialPath}/tab_analytics.html`, 2);
this.addEditorTab('Webhooks', `${partialPath}/tab_webhooks.html`, 3); this.addEditorTab('Webhooks', `${partialPath}/tab_webhooks.html`, 3);
this.addEditorTab('Axes', axesEditorComponent, 4); this.addEditorTab('Axes', axesEditorComponent, 4);
@ -508,7 +508,7 @@ class GraphCtrl extends MetricsPanelCtrl {
get panelPath() { get panelPath() {
if (this._panelPath === undefined) { if (this._panelPath === undefined) {
this._panelPath = 'public/plugins/' + this.pluginId + '/'; this._panelPath = 'public/plugins/hastic-app/panel/graph_panel';
} }
return this._panelPath; return this._panelPath;
} }

Loading…
Cancel
Save