Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DDA
dda-wizard
Commits
6a35b37b
Commit
6a35b37b
authored
Aug 10, 2016
by
Hellmich, Christoph
Browse files
Rename tree to treeService in step-delete-dialog-controller
parent
d8d54e1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/scripts/app/wizardEditor/wizardEditor-step-delete-dialog.controller.js
View file @
6a35b37b
'
use strict
'
;
angular
.
module
(
'
ddaApp
'
)
.
controller
(
'
WizardEditorStepDeleteController
'
,
function
(
$scope
,
$uibModalInstance
,
entity
,
Step
,
tree
)
{
.
controller
(
'
WizardEditorStepDeleteController
'
,
function
(
$scope
,
$uibModalInstance
,
entity
,
Step
,
tree
Service
)
{
$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
);
});
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment