[backport] reset attachments on issue creation
parent
2a42420856
commit
c03f3e1337
|
@ -39,7 +39,9 @@ CreateIssueDirective = ($repo, $confirm, $rootscope, lightboxService, $loading,
|
|||
$scope.attachments = Immutable.List()
|
||||
|
||||
$scope.$on "issueform:new", (ctx, project)->
|
||||
attachmentsToAdd = Immutable.List()
|
||||
form.reset()
|
||||
|
||||
resetAttachments()
|
||||
|
||||
$el.find(".tag-input").val("")
|
||||
|
||||
|
@ -69,6 +71,7 @@ CreateIssueDirective = ($repo, $confirm, $rootscope, lightboxService, $loading,
|
|||
|
||||
resetAttachments = () ->
|
||||
attachmentsToAdd = Immutable.List()
|
||||
$scope.attachments = Immutable.List()
|
||||
|
||||
$scope.addAttachment = (attachment) ->
|
||||
attachmentsToAdd = attachmentsToAdd.push(attachment)
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
@extend %medium;
|
||||
@extend %bold;
|
||||
color: $grayer;
|
||||
line-height: 36px;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
.options {
|
||||
|
|
Loading…
Reference in New Issue