-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
42 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 18 additions & 5 deletions
23
src/panel/graph_panel/partials/reconnect_to_datasource.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
<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> | ||
<button class="btn btn-inverse" ng-click="ctrl.onHasticDatasourceChange()"> | ||
<i class="fa fa-plug"></i> | ||
Reconnect to Hastic server | ||
</button> | ||
<div class="gf-form-group"> | ||
<div class="alert-{{ctrl.connectionStatus.status}} alert""> | ||
<div class="alert-icon"> | ||
<i class="fa fa-spiner fa-spin" ng-show="ctrl.connectionStatus.status === 'info'"></i> | ||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters