rozetko
5 years ago
committed by
GitHub
4 changed files with 42 additions and 15 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.connectionStatus.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.connectionStatus.status === 'info'"></i> |
||||||
</button> |
<i class="fa fa-exclamation-triangle" ng-show="ctrl.connectionStatus.status === 'error'"></i> |
||||||
|
<i class="fa fa-check" ng-show="ctrl.connectionStatus.status !== 'error'"></i> |
||||||
|
</div> |
||||||
|
<div class="alert-body"> |
||||||
|
<div class="alert-title" ng-bind-html="ctrl.connectionStatus.message" /> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div ng-hide="ctrl.connectionStatus.status === 'info'"> |
||||||
|
<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