mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-22 16:20:44 +01:00
fdf0d4d616
- Update Screenshot
16 lines
381 B
JavaScript
16 lines
381 B
JavaScript
define([
|
|
'app',
|
|
'services/playbooks'
|
|
], function(app) {
|
|
app.registerController('PlaybookCtrl', ['$scope', '$state', 'playbooks', 'playbook', function($scope, $state, playbooks, playbook) {
|
|
$scope.playbook = playbook;
|
|
|
|
$scope.delete = function () {
|
|
$scope.playbook.delete();
|
|
|
|
playbooks.getPlaybooks(function () {
|
|
$state.transitionTo('homepage');
|
|
})
|
|
}
|
|
}]);
|
|
}); |