Files
admin-php-module/web/controllers/user_logs.js
miroman-afk 5497b611ef v.2.12
-Add new setting "Delete shift"
-Move "Shift" frontend to V1 module
2022-02-01 01:55:15 +03:00

19 lines
399 B
JavaScript

(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();
}
})();