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