User profile editing and password
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
"use strict";
|
||||
|
||||
window.app.controller('UserController',
|
||||
window.app.controller("UserController",
|
||||
[
|
||||
"$uibModal", "userSvc", "downloadSvc",
|
||||
function($uibModal, userSvc, downloadSvc) {
|
||||
var vm = this;
|
||||
|
||||
@@ -9,21 +11,20 @@
|
||||
|
||||
vm.create = function() {
|
||||
$uibModal.open({
|
||||
template: '<user-create />',
|
||||
backdrop: 'static'
|
||||
template: "<user-create />",
|
||||
backdrop: "static"
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
vm.edit = function() {
|
||||
$uibModal.open({
|
||||
template: '<user-edit />',
|
||||
backdrop: 'static'
|
||||
template: "<user-edit />",
|
||||
backdrop: "static"
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
vm.export = function() {
|
||||
userSvc.exportUsers()
|
||||
.success(downloadSvc.success);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
]);
|
||||
})();
|
||||
Reference in New Issue
Block a user