mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
Rename key to opts
This commit is contained in:
parent
d39e77cc87
commit
c2a4d25653
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user