Commit 6a35b37b authored by Hellmich, Christoph's avatar Hellmich, Christoph
Browse files

Rename tree to treeService in step-delete-dialog-controller

parent d8d54e1d
'use strict';
angular.module('ddaApp')
.controller('WizardEditorStepDeleteController', function($scope, $uibModalInstance, entity, Step, tree) {
.controller('WizardEditorStepDeleteController', function($scope, $uibModalInstance, entity, Step, treeService) {
$scope.step = entity;
$scope.clear = function() {
$uibModalInstance.dismiss('cancel');
};
$scope.confirmDelete = function(id) {
console.log(tree);
tree.removeStep(id).then(function() {
treeService.removeStep(id).then(function() {
$uibModalInstance.close(true);
});
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment