Add sprint selected color in issue button
parent
4c44c17521
commit
bf2ead8839
|
@ -696,6 +696,14 @@ module.directive("tgPromoteIssueToUsButton", ["$rootScope", "$tgRepo", "$tgConfi
|
||||||
|
|
||||||
AssignSprintToIssueButtonDirective = ($rootScope, $repo, $translate, lightboxService) ->
|
AssignSprintToIssueButtonDirective = ($rootScope, $repo, $translate, lightboxService) ->
|
||||||
link = ($scope, $el, $attrs, $model) ->
|
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) ->
|
$el.on "click", "a", (event) ->
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
|
|
|
@ -194,6 +194,11 @@
|
||||||
+input {
|
+input {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
&.button-set,
|
||||||
|
&.text-button.button-set:hover {
|
||||||
|
background: $yellow-green;
|
||||||
|
border-color: $yellow-green;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.item-block,
|
.item-block,
|
||||||
.item-unblock {
|
.item-unblock {
|
||||||
|
|
Loading…
Reference in New Issue