Skip to content

Commit

Permalink
add alert outside of table
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jul 7, 2016
1 parent c219c08 commit 1cbaa7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion public/app/database/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ angular.module('fusioApp.database', ['ngRoute', 'ui.bootstrap'])

modalInstance.result.then(function(response){
$scope.response = response;
$scope.table = null;
$scope.loadTables();
$scope.loadTable($scope.table);
}, function(){
});
};
Expand Down
14 changes: 7 additions & 7 deletions public/app/database/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ <h4>{{table.name}}</h4>
</table>
</div>

<div ng-if="table">
<uib-alert type="success" close="closeResponse()" ng-if="response.success === true">
{{response.message}}
</uib-alert>
<uib-alert type="success" close="closeResponse()" ng-if="response.success === true">
{{response.message}}
</uib-alert>

<uib-alert type="danger" close="closeResponse()" ng-if="response.success === false">
{{response.message}}
</uib-alert>
<uib-alert type="danger" close="closeResponse()" ng-if="response.success === false">
{{response.message}}
</uib-alert>

<div ng-if="table">
<div class="fusio-grid">
<table class="table">
<colgroup>
Expand Down

0 comments on commit 1cbaa7c

Please sign in to comment.