Skip to content

Commit

Permalink
Merge pull request #373 from EverythingMe/feature/variables
Browse files Browse the repository at this point in the history
UI Fixes
  • Loading branch information
arikfr committed Feb 8, 2015
2 parents d82d5c3 + a5eb0e2 commit 89e307d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions rd_ui/app/scripts/controllers/query_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@
$scope.query.queryResult = $scope.queryResult;

notifications.showNotification("re:dash", $scope.query.name + " updated.");
} else if (status == 'failed') {
notifications.showNotification("re:dash", $scope.query.name + " failed to run: " + $scope.queryResult.getError());
}

if (status === 'done' || status === 'failed') {
Expand Down
4 changes: 2 additions & 2 deletions rd_ui/app/scripts/directives/query_directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@
</button>',
link: function($scope) {
$scope.formatQuery = function formatQuery() {
$scope.queryExecuting = true;
$scope.queryFormatting = true;
$http.post('/api/queries/format', {
'query': $scope.query.query
}).success(function (response) {
$scope.query.query = response;
}).finally(function () {
$scope.queryExecuting = false;
$scope.queryFormatting = false;
});
};
}
Expand Down
2 changes: 1 addition & 1 deletion rd_ui/app/views/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h2>
<!-- code editor -->
<div ng-show="sourceMode">
<p>
<query-editor query="query" lock="queryExecuting"></query-editor>
<query-editor query="query" lock="queryFormatting"></query-editor>
</p>
<hr>
</div>
Expand Down

0 comments on commit 89e307d

Please sign in to comment.