From 2310f512a25980b07dc1c6db97ff36090782354e Mon Sep 17 00:00:00 2001 From: rozetko Date: Mon, 4 Mar 2019 18:18:10 +0300 Subject: [PATCH] Make config work --- src/datasource/config_ctrl.ts | 3 ++- src/datasource/partials/config.html | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/datasource/config_ctrl.ts b/src/datasource/config_ctrl.ts index 265ec13..cb02297 100644 --- a/src/datasource/config_ctrl.ts +++ b/src/datasource/config_ctrl.ts @@ -9,11 +9,12 @@ export class HasticConfigCtrl { { key: 'direct', value: 'Browser' } ]; - private showAccessHelp: boolean = false; + public showAccessHelp = false; constructor(private $scope: any) { if(this.$scope.current === undefined) { this.$scope.current = { + url: '', access: 'proxy' }; } diff --git a/src/datasource/partials/config.html b/src/datasource/partials/config.html index 1a98b3a..07bc560 100644 --- a/src/datasource/partials/config.html +++ b/src/datasource/partials/config.html @@ -7,7 +7,7 @@

Specify a complete Hastic Server HTTP URL (for example http://your_hastic_server:8000)

- + Your access method is Browser, this means the URL needs to be accessible from the browser. - + Your access method is Server, this means the URL needs to be accessible from the grafana backend/server. @@ -33,7 +33,7 @@