Change DELETE for UNLINK in unlink Story lightbox

stable
Xavier Julián 2016-09-23 08:05:45 +02:00 committed by David Barragán Merino
parent d3f5cfb02f
commit ffc04dcc41
2 changed files with 6 additions and 6 deletions

View File

@ -1073,9 +1073,9 @@
"PAGE_TITLE": "{{epicSubject}} - Epic {{epicRef}} - {{projectName}}", "PAGE_TITLE": "{{epicSubject}} - Epic {{epicRef}} - {{projectName}}",
"PAGE_DESCRIPTION": "Status: {{epicStatus }}. Description: {{epicDescription}}", "PAGE_DESCRIPTION": "Status: {{epicStatus }}. Description: {{epicDescription}}",
"SECTION_NAME": "Epic", "SECTION_NAME": "Epic",
"TITLE_LIGHTBOX_DELETE_RELATED_USERSTORY": "Delete related userstory...", "TITLE_LIGHTBOX_UNLINK_RELATED_USERSTORY": "Unlink related userstory",
"MSG_LIGHTBOX_DELETE_RELATED_USERSTORY": "the related userstory '{{subject}}'", "MSG_LIGHTBOX_UNLINK_RELATED_USERSTORY": "It will delete the link to the related userstory '{{subject}}'",
"ERROR_DELETE_RELATED_USERSTORY": "We have not been able to delete: {{errorMessage}}", "ERROR_UNLINK_RELATED_USERSTORY": "We have not been able to unlink: {{errorMessage}}",
"CREATE_RELATED_USERSTORIES": "Create a relationship with", "CREATE_RELATED_USERSTORIES": "Create a relationship with",
"NEW_USERSTORY": "New user story", "NEW_USERSTORY": "New user story",
"EXISTING_USERSTORY": "Existing user story", "EXISTING_USERSTORY": "Existing user story",

View File

@ -40,15 +40,15 @@ class RelatedUserstoryRowController
return @translate.instant("COMMON.ASSIGNED_TO.NOT_ASSIGNED") return @translate.instant("COMMON.ASSIGNED_TO.NOT_ASSIGNED")
onDeleteRelatedUserstory: () -> onDeleteRelatedUserstory: () ->
title = @translate.instant('EPIC.TITLE_LIGHTBOX_DELETE_RELATED_USERSTORY') title = @translate.instant('EPIC.TITLE_LIGHTBOX_UNLINK_RELATED_USERSTORY')
message = @translate.instant('EPIC.MSG_LIGHTBOX_DELETE_RELATED_USERSTORY', { message = @translate.instant('EPIC.MSG_LIGHTBOX_UNLINK_RELATED_USERSTORY', {
subject: @.userstory.get('subject') subject: @.userstory.get('subject')
}) })
return @confirm.askOnDelete(title, message) return @confirm.askOnDelete(title, message)
.then (askResponse) => .then (askResponse) =>
onError = () => onError = () =>
message = @translate.instant('EPIC.ERROR_DELETE_RELATED_USERSTORY', {errorMessage: message}) message = @translate.instant('EPIC.ERROR_UNLINK_RELATED_USERSTORY', {errorMessage: message})
@confirm.notify("error", null, message) @confirm.notify("error", null, message)
askResponse.finish(false) askResponse.finish(false)