From 61764011c6473616fd4bec766671109553a8e918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Hermida?= Date: Fri, 10 Aug 2018 15:02:17 +0200 Subject: [PATCH] Fix some messages --- app/coffee/modules/taskboard/main.coffee | 2 +- app/locales/taiga/locale-en.json | 4 ++-- .../belong-to-epics/belong-to-epics.directive.coffee | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/coffee/modules/taskboard/main.coffee b/app/coffee/modules/taskboard/main.coffee index 42cbb6d1..a68793fa 100644 --- a/app/coffee/modules/taskboard/main.coffee +++ b/app/coffee/modules/taskboard/main.coffee @@ -567,7 +567,7 @@ class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin, taiga title = @translate.instant("ISSUES.CONFIRM_DETACH_FROM_SPRINT.TITLE") subtitle = @translate.instant("ISSUES.CONFIRM_DETACH_FROM_SPRINT.MESSAGE") message = @scope.sprint.name - @confirm.askOnDelete(title, message, subtitle).then (askResponse) => + @confirm.askOnDelete(title, message).then (askResponse) => removingIssue.milestone = null promise = @repo.save(removingIssue) promise.then => diff --git a/app/locales/taiga/locale-en.json b/app/locales/taiga/locale-en.json index 3c031a06..2906f028 100644 --- a/app/locales/taiga/locale-en.json +++ b/app/locales/taiga/locale-en.json @@ -1104,7 +1104,7 @@ }, "REMOVE_RELATIONSHIP_WITH_EPIC": { "TITLE": "Remove relationship with Epic", - "MESSAGE": "the relationship of this User Story with the Epic {{epicSubject}}" + "MESSAGE": "Are you sure you want to delete the relationship of this User Story with the Epic {{epicSubject}}" }, "CREATE_MEMBER": { "PLACEHOLDER_INVITATION_TEXT": "(Optional) Add a personalized text to the invitation. Tell something lovely to your new members ;-)", @@ -1453,7 +1453,7 @@ }, "CONFIRM_CHANGE_FROM_SPRINT": { "TITLE": "Move issue from another sprint", - "MESSAGE": "Are you sure you want to move the issue {{ issue }} from sprint {{ oldSprintName }} to sprint {{ newSprintName }}?" + "MESSAGE": "This issue is currently attached to sprint {{ oldSprintName }}. You are about to detach it from that sprint and attach it instead to sprint {{ newSprintName }}." }, "CONFIRM_PROMOTE": { "TITLE": "Promote this issue to a new user story", diff --git a/app/modules/components/belong-to-epics/belong-to-epics.directive.coffee b/app/modules/components/belong-to-epics/belong-to-epics.directive.coffee index b4b3b9b8..f0370cb5 100644 --- a/app/modules/components/belong-to-epics/belong-to-epics.directive.coffee +++ b/app/modules/components/belong-to-epics/belong-to-epics.directive.coffee @@ -37,7 +37,7 @@ BelongToEpicsDirective = ($translate, $confirm, $rs, $rs2, lightboxService) -> { epicSubject: epic.get('subject') } ) - $confirm.askOnDelete(title, message).then (askResponse) -> + $confirm.ask(title, null, message).then (askResponse) -> onSuccess = -> askResponse.finish() scope.$broadcast("related-epics:changed", scope.item)