rozetko
5 years ago
1 changed files with 18 additions and 5 deletions
@ -1,7 +1,20 @@ |
|||||||
<div class="gf-form-button-row" ng-if="ctrl.hasticDatasource !== undefined && ctrl.analyticsController.serverStatus === false"> |
<div class="gf-form-button-row" ng-if="ctrl.hasticDatasource !== undefined && ctrl.analyticsController.serverStatus === false"> |
||||||
<h5>Hastic server at "{{ctrl.hasticDatasource.url}}" is not available</h5> |
<div class="gf-form-group"> |
||||||
<button class="btn btn-inverse" ng-click="ctrl.onHasticDatasourceChange()"> |
<div class="alert-{{ctrl.hasticDatasourceStatus.status}} alert""> |
||||||
<i class="fa fa-plug"></i> |
<div class="alert-icon"> |
||||||
Reconnect to Hastic server |
<i class="fa fa-spiner fa-spin" ng-show="ctrl.hasticDatasourceStatus.testing"></i> |
||||||
</button> |
<i class="fa fa-exclamation-triangle" ng-show="ctrl.hasticDatasourceStatus.status === 'error'"></i> |
||||||
|
<i class="fa fa-check" ng-show="ctrl.hasticDatasourceStatus.status !== 'error'"></i> |
||||||
|
</div> |
||||||
|
<div class="alert-body"> |
||||||
|
<div class="alert-title" ng-bind-html="ctrl.hasticDatasourceStatus.message" /> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div ng-hide="ctrl.hasticDatasourceStatus.testing"> |
||||||
|
<button class="btn btn-secondary" ng-click="ctrl.onHasticDatasourceChange()"> |
||||||
|
<i class="fa fa-plug"></i> |
||||||
|
Connect to Hastic Datasource |
||||||
|
</button> |
||||||
|
</div> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue