Add sprint selected color in issue button

stable
Álex Hermida 2018-07-12 13:15:11 +02:00 committed by Alex Hermida
parent 4c44c17521
commit bf2ead8839
2 changed files with 13 additions and 0 deletions

View File

@ -696,6 +696,14 @@ module.directive("tgPromoteIssueToUsButton", ["$rootScope", "$tgRepo", "$tgConfi
AssignSprintToIssueButtonDirective = ($rootScope, $repo, $translate, lightboxService) ->
link = ($scope, $el, $attrs, $model) ->
$scope.$watch $attrs.ngModel, (item) ->
return if not item
if item.milestone
$el.find('.assign-issue-button').addClass('button-set')
else
$el.find('.assign-issue-button').removeClass('button-set')
$el.on "click", "a", (event) ->
event.preventDefault()
event.stopPropagation()

View File

@ -194,6 +194,11 @@
+input {
display: none;
}
&.button-set,
&.text-button.button-set:hover {
background: $yellow-green;
border-color: $yellow-green;
}
}
.item-block,
.item-unblock {