Fix modal dismiss callback

This commit is contained in:
Denis 2018-03-09 16:41:55 +05:00
parent 9106479584
commit 02ab87455c
10 changed files with 16 additions and 6422 deletions

View File

@ -28,7 +28,7 @@ define(['controllers/projects/edit'], function () {
}).catch(function (response) {
swal('Error', 'Could not create project: ' + response.status, 'error');
});
});
}, function () {});
}
$scope.refresh();

View File

@ -64,7 +64,7 @@ define(['controllers/projects/taskRunner'], function() {
size: 'lg'
}).result.then(function() {
$scope.reload();
});
}, function () {});
}
}]);
});

View File

@ -49,7 +49,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Environment not added: ' + response.status, 'error');
});
});
}, function () {});
}
$scope.editEnvironment = function (env) {
@ -70,7 +70,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Environment not updated: ' + response.status, 'error');
});
});
}, function () {});
}
$scope.reload();

View File

@ -48,7 +48,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Inventory not added: ' + response.status, 'error');
});
});
}, function () {});
});
}
@ -73,7 +73,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Inventory not updated: ' + response.status, 'error');
});
});
}, function () {});
});
}
@ -92,7 +92,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Inventory not updated: ' + response.status, 'error');
});
});
}, function () {});
}
$scope.getKeys = function (cb) {

View File

@ -43,7 +43,7 @@ define(function () {
}).catch(function (response) {
swal('error', 'could not add key:' + response.status, 'error');
});
});
}, function () {});
}
$scope.update = function (key) {
@ -66,7 +66,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'could not update key:' + response.status, 'error');
});
});
}, function () {});
}
$scope.reload();

View File

@ -64,7 +64,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Repository not updated: ' + response.status, 'error');
});
});
}, function () {});
}
$scope.add = function () {
@ -81,7 +81,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'Repository not added: ' + response.status, 'error');
});
});
}, function () {});
}
$scope.reload();

View File

@ -94,7 +94,7 @@ define(['controllers/projects/taskRunner'], function () {
}).catch(function (response) {
swal('error', 'could not add template:' + response.status, 'error');
});
});
}, function () {});
}
$scope.update = function (template) {
@ -149,7 +149,7 @@ define(['controllers/projects/taskRunner'], function () {
scope: scope,
size: 'lg'
});
})
}, function () {});
}
$scope.showAll = function() {
@ -200,7 +200,7 @@ define(['controllers/projects/taskRunner'], function () {
}).catch(function (response) {
swal('error', 'could not add template:' + response.status, 'error');
});
});
}, function () {});
}
$scope.reload();

View File

@ -48,7 +48,7 @@ define(function () {
}).catch(function (response) {
swal('Error', 'User not added: ' + response.status, 'error');
});
});
}, function () {});
});
}

View File

@ -24,7 +24,7 @@ define(function () {
}).error(function (response) {
swal('Error', 'API responded with HTTP ' + response.status, 'error');
});
});
}, function () {});
}
}]);
});

File diff suppressed because one or more lines are too long