mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
#121: alerts
This commit is contained in:
parent
31c59467db
commit
8d1b523b94
@ -14,7 +14,6 @@
|
|||||||
$scope.isSourceVisible = route.locals.viewSource;
|
$scope.isSourceVisible = route.locals.viewSource;
|
||||||
|
|
||||||
$scope.queryExecuting = false;
|
$scope.queryExecuting = false;
|
||||||
$scope.queryResultStatus = null;
|
|
||||||
|
|
||||||
$scope.newVisualization = undefined;
|
$scope.newVisualization = undefined;
|
||||||
|
|
||||||
@ -173,8 +172,6 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$scope.$watch("queryResult && queryResult.getStatus()", function(status) {
|
$scope.$watch("queryResult && queryResult.getStatus()", function(status) {
|
||||||
$scope.queryResultStatus = status;
|
|
||||||
|
|
||||||
if (!status) {
|
if (!status) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -59,21 +59,6 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- alerts -->
|
|
||||||
<div ng-show="queryExecuting">
|
|
||||||
<p>
|
|
||||||
<div class="alert alert-info"
|
|
||||||
ng-show="queryResultStatus !== 'done' && queryResultStatus !== 'failed'"
|
|
||||||
ng-switch="queryResultStatus">
|
|
||||||
<span ng-switch-when="processing">Executing query…</span>
|
|
||||||
<span ng-switch-when="waiting">Query in queue…</span>
|
|
||||||
<rd-timer timestamp="queryResult.getUpdatedAt()"></rd-timer>
|
|
||||||
<button type="button" class="btn btn-warning btn-xs pull-right" ng-disabled="cancelling" ng-click="cancelExecution()">Cancel</button>
|
|
||||||
</div>
|
|
||||||
<div class="alert alert-danger" ng-show="queryResult.getError()">Error running query: <strong>{{queryResult.getError()}}</strong></div>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- code editor -->
|
<!-- code editor -->
|
||||||
<p ng-show="isSourceVisible">
|
<p ng-show="isSourceVisible">
|
||||||
<textarea ui-codemirror="editorOptions" ui-refresh="isSourceVisible" ng-model="query.query"></textarea>
|
<textarea ui-codemirror="editorOptions" ui-refresh="isSourceVisible" ng-model="query.query"></textarea>
|
||||||
@ -118,8 +103,19 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-lg-9">
|
<div class="col-lg-9">
|
||||||
|
<!-- alerts -->
|
||||||
|
<div class="alert alert-info" ng-show="queryResult.getStatus() == 'processing'">
|
||||||
|
Executing query… <rd-timer timestamp="queryResult.getUpdatedAt()"></rd-timer>
|
||||||
|
<button type="button" class="btn btn-warning btn-xs pull-right" ng-disabled="cancelling" ng-click="cancelExecution()">Cancel</button>
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-info" ng-show="queryResult.getStatus() == 'waiting'">
|
||||||
|
Query in queue… <rd-timer timestamp="queryResult.getUpdatedAt()"></rd-timer>
|
||||||
|
<button type="button" class="btn btn-warning btn-xs pull-right" ng-disabled="cancelling" ng-click="cancelExecution()">Cancel</button>
|
||||||
|
</div>
|
||||||
|
<div class="alert alert-danger" ng-show="queryResult.getError()">Error running query: <strong>{{queryResult.getError()}}</strong></div>
|
||||||
|
|
||||||
<!-- tabs and data -->
|
<!-- tabs and data -->
|
||||||
<div ng-hide="queryExecuting">
|
<div ng-show="queryResult.getStatus() == 'done'">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
|
Loading…
Reference in New Issue
Block a user