v.2.12
-Add new setting "Delete shift" -Move "Shift" frontend to V1 module
This commit is contained in:
19
web/controllers/user_logs.js
Normal file
19
web/controllers/user_logs.js
Normal file
@@ -0,0 +1,19 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
angular
|
||||
.module('app')
|
||||
.controller('UserLogCtrl', UserLogCtrl);
|
||||
|
||||
UserLogCtrl.$inject = ['$scope', 'smartRequest', '$rootScope'];
|
||||
function UserLogCtrl($scope, smartRequest, $rootScope) {
|
||||
$scope.logs = [];
|
||||
|
||||
$scope.getLogs = function() {
|
||||
smartRequest.get('log/user/list', function(data) {
|
||||
$scope.logs = data.logs;
|
||||
});
|
||||
};
|
||||
|
||||
$scope.getLogs();
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user