Taskboard blocked tasks visual color

stable
Xavier Julián 2014-09-05 14:53:21 +02:00
parent 09f4b382ff
commit 7f871eeab3
2 changed files with 14 additions and 3 deletions

View File

@ -221,15 +221,15 @@ module.directive("tgTaskboard", ["$rootScope", TaskboardDirective])
TaskboardTaskDirective = ($rootscope) ->
link = ($scope, $el, $attrs, $model) ->
console.log "taskboard task"
$el.disableSelection()
if $scope.task.is_blocked
$el.addClass('blocked')
$el.find(".icon-edit").on "click", (event) ->
if $el.find('.icon-edit').hasClass('noclick')
return
$scope.$apply ->
$rootscope.$broadcast("taskform:edit", $scope.task)
$el.disableSelection()
return {link:link}

View File

@ -1,8 +1,10 @@
.taskboard-task {
@include transition (box-shadow .4s linear);
background: $postit;
border: 1px solid $postit-hover;
box-shadow: none;
cursor: move;
margin: .2rem;
min-height: 7rem;
position: relative;
&:hover {
@ -20,6 +22,15 @@
&.ui-sortable-placeholder {
background: $grayer;
}
&.blocked {
background: $red;
border: 1px solid darken($red, 10%);
color: $white;
a,
span {
color: $white;
}
}
.taskboard-tagline {
@include table-flex();
background: $gray-light; //Fallback