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