From c41e1f4c2c5e5a62a99c3184705c8b8fd35c5e53 Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Mon, 4 Feb 2019 16:56:30 +0300 Subject: [PATCH] fix Failed to load template #157 --- src/panel/graph_panel/graph_ctrl.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panel/graph_panel/graph_ctrl.ts b/src/panel/graph_panel/graph_ctrl.ts index f7a08cf..9d64a62 100644 --- a/src/panel/graph_panel/graph_ctrl.ts +++ b/src/panel/graph_panel/graph_ctrl.ts @@ -272,7 +272,7 @@ class GraphCtrl extends MetricsPanelCtrl { this._updatePanelInfo(); 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('Webhooks', `${partialPath}/tab_webhooks.html`, 3); this.addEditorTab('Axes', axesEditorComponent, 4); @@ -508,7 +508,7 @@ class GraphCtrl extends MetricsPanelCtrl { get panelPath() { if (this._panelPath === undefined) { - this._panelPath = 'public/plugins/' + this.pluginId + '/'; + this._panelPath = 'public/plugins/hastic-app/panel/graph_panel'; } return this._panelPath; }