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