Change DELETE for UNLINK in unlink Story lightbox
parent
d3f5cfb02f
commit
ffc04dcc41
|
@ -1073,9 +1073,9 @@
|
|||
"PAGE_TITLE": "{{epicSubject}} - Epic {{epicRef}} - {{projectName}}",
|
||||
"PAGE_DESCRIPTION": "Status: {{epicStatus }}. Description: {{epicDescription}}",
|
||||
"SECTION_NAME": "Epic",
|
||||
"TITLE_LIGHTBOX_DELETE_RELATED_USERSTORY": "Delete related userstory...",
|
||||
"MSG_LIGHTBOX_DELETE_RELATED_USERSTORY": "the related userstory '{{subject}}'",
|
||||
"ERROR_DELETE_RELATED_USERSTORY": "We have not been able to delete: {{errorMessage}}",
|
||||
"TITLE_LIGHTBOX_UNLINK_RELATED_USERSTORY": "Unlink related userstory",
|
||||
"MSG_LIGHTBOX_UNLINK_RELATED_USERSTORY": "It will delete the link to the related userstory '{{subject}}'",
|
||||
"ERROR_UNLINK_RELATED_USERSTORY": "We have not been able to unlink: {{errorMessage}}",
|
||||
"CREATE_RELATED_USERSTORIES": "Create a relationship with",
|
||||
"NEW_USERSTORY": "New user story",
|
||||
"EXISTING_USERSTORY": "Existing user story",
|
||||
|
|
|
@ -40,15 +40,15 @@ class RelatedUserstoryRowController
|
|||
return @translate.instant("COMMON.ASSIGNED_TO.NOT_ASSIGNED")
|
||||
|
||||
onDeleteRelatedUserstory: () ->
|
||||
title = @translate.instant('EPIC.TITLE_LIGHTBOX_DELETE_RELATED_USERSTORY')
|
||||
message = @translate.instant('EPIC.MSG_LIGHTBOX_DELETE_RELATED_USERSTORY', {
|
||||
title = @translate.instant('EPIC.TITLE_LIGHTBOX_UNLINK_RELATED_USERSTORY')
|
||||
message = @translate.instant('EPIC.MSG_LIGHTBOX_UNLINK_RELATED_USERSTORY', {
|
||||
subject: @.userstory.get('subject')
|
||||
})
|
||||
|
||||
return @confirm.askOnDelete(title, message)
|
||||
.then (askResponse) =>
|
||||
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)
|
||||
askResponse.finish(false)
|
||||
|
||||
|
|
Loading…
Reference in New Issue