diff --git a/src/panel/graph_panel/graph_ctrl.ts b/src/panel/graph_panel/graph_ctrl.ts index 95fd7cd..8743310 100644 --- a/src/panel/graph_panel/graph_ctrl.ts +++ b/src/panel/graph_panel/graph_ctrl.ts @@ -9,7 +9,7 @@ import { MetricExpanded } from './models/metric'; import { DatasourceRequest } from './models/datasource'; import { AnalyticUnitId, AnalyticUnit, LabelingMode } from './models/analytic_units/analytic_unit'; import { BOUND_TYPES } from './models/analytic_units/anomaly_analytic_unit'; -import { AnalyticService } from './services/analytic_service'; +import { AnalyticService, HasticDatasourceConnectionStatus } from './services/analytic_service'; import { AnalyticController } from './controllers/analytic_controller'; import { HasticPanelInfo } from './models/hastic_panel_info'; import { PanelTemplate, TemplateVariables } from './models/panel'; @@ -363,6 +363,10 @@ class GraphCtrl extends MetricsPanelCtrl { this.refresh(); } + get connectionStatus(): HasticDatasourceConnectionStatus { + return this.analyticService.connectionStatus; + } + issueQueries(datasource) { // this.annotationsPromise = this.annotationsSrv.getAnnotations({ // dashboard: this.dashboard, diff --git a/src/panel/graph_panel/partials/reconnect_to_datasource.html b/src/panel/graph_panel/partials/reconnect_to_datasource.html index 1d56393..b1cbe6e 100644 --- a/src/panel/graph_panel/partials/reconnect_to_datasource.html +++ b/src/panel/graph_panel/partials/reconnect_to_datasource.html @@ -1,7 +1,20 @@
diff --git a/src/panel/graph_panel/partials/tab_webhooks.html b/src/panel/graph_panel/partials/tab_webhooks.html index 13d6e0d..d340d3a 100644 --- a/src/panel/graph_panel/partials/tab_webhooks.html +++ b/src/panel/graph_panel/partials/tab_webhooks.html @@ -1,5 +1,3 @@ -