Rename key to opts

This commit is contained in:
Anže Jenšterle 2016-06-25 21:19:47 +01:00
parent d39e77cc87
commit c2a4d25653

View File

@ -35,8 +35,8 @@ define(function () {
$scope.add = function () {
$modal.open({
templateUrl: '/tpl/projects/keys/add.html'
}).result.then(function (key) {
$http.post(Project.getURL() + '/keys', key.key).success(function () {
}).result.then(function (opts) {
$http.post(Project.getURL() + '/keys', opts.key).success(function () {
$scope.reload();
}).error(function (_, status) {
swal('error', 'could not add key:' + status, 'error');