Skip to content

Commit

Permalink
Merge pull request #88 from e-ucm/fixremove
Browse files Browse the repository at this point in the history
Added fix in remove session user data button
  • Loading branch information
Dan Cristian, Rotaru committed Apr 4, 2017
2 parents ffe0d8b + 8b89b74 commit 01c3a87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions app/public/js/controllers/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,8 @@ angular.module('sessionApp', ['myApp', 'ngStorage', 'services'])

$scope.deleteUserData = function (name) {
$http.delete(CONSTANTS.PROXY + '/sessions/data/' + $scope.session._id + '/' + name).success(function () {
$scope.sessionOpenedError = '';
}).error(function (err, status) {
console.err(err);
}).error(function (err) {
console.error(err);
});
};
}
Expand Down
8 changes: 4 additions & 4 deletions app/views/data/realtime/realtime.jade
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ link(rel="stylesheet", href="css/realtime.css")
| Warnings
th Remove data
tbody
tr(ng-repeat="result in results | orderBy:alertScore:true" ng-click="viewPlayer(result)")
td {{ result.name }}
td {{ result.alerts.length }}
td {{ result.warnings.length }}
tr(ng-repeat="result in results | orderBy:alertScore:true")
td(ng-click="viewPlayer(result)") {{ result.name }}
td(ng-click="viewPlayer(result)") {{ result.alerts.length }}
td(ng-click="viewPlayer(result)") {{ result.warnings.length }}
td
a(ng-click='deleteUserData(result.name)')
span.glyphicon.glyphicon-remove-sign
Expand Down

0 comments on commit 01c3a87

Please sign in to comment.