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