Fixed confirmation message shown when detaching issues from sprints

stable
Daniel García 2018-08-13 14:20:48 +02:00 committed by Alex Hermida
parent 35e1b91d81
commit f9e69bde10
1 changed files with 4 additions and 3 deletions

View File

@ -565,9 +565,10 @@ class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin, taiga
.then (removingIssue) => .then (removingIssue) =>
issue = issue.set('loading-delete', false) issue = issue.set('loading-delete', false)
title = @translate.instant("ISSUES.CONFIRM_DETACH_FROM_SPRINT.TITLE") title = @translate.instant("ISSUES.CONFIRM_DETACH_FROM_SPRINT.TITLE")
subtitle = @translate.instant("ISSUES.CONFIRM_DETACH_FROM_SPRINT.MESSAGE") message = @translate.instant("ISSUES.CONFIRM_DETACH_FROM_SPRINT.MESSAGE")
message = @scope.sprint.name message += " <strong>#{@scope.sprint.name}</strong>"
@confirm.askOnDelete(title, message).then (askResponse) =>
@confirm.ask(title, null, message).then (askResponse) =>
removingIssue.milestone = null removingIssue.milestone = null
promise = @repo.save(removingIssue) promise = @repo.save(removingIssue)
promise.then => promise.then =>