Minor fixes on kanban page.
parent
4fce5724b5
commit
bc77cad4ea
|
@ -165,6 +165,10 @@ class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
|
||||||
when "standard" then @rootscope.$broadcast("usform:new", statusId)
|
when "standard" then @rootscope.$broadcast("usform:new", statusId)
|
||||||
when "bulk" then @rootscope.$broadcast("usform:bulk", statusId)
|
when "bulk" then @rootscope.$broadcast("usform:bulk", statusId)
|
||||||
|
|
||||||
|
changeUsAssignedTo: (us) ->
|
||||||
|
@rootscope.$broadcast("assigned-to:add", us)
|
||||||
|
|
||||||
|
# Scope Events Handlers
|
||||||
onNewUserstory: (ctx, us) ->
|
onNewUserstory: (ctx, us) ->
|
||||||
@scope.usByStatus[us.status].splice(0, 0, us)
|
@scope.usByStatus[us.status].splice(0, 0, us)
|
||||||
|
|
||||||
|
@ -191,9 +195,14 @@ module.directive("tgKanban", ["$tgRepo", "$rootScope", KanbanDirective])
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
KanbanUserstoryDirective = ->
|
KanbanUserstoryDirective = ->
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs, $model) ->
|
||||||
$el.disableSelection()
|
$el.disableSelection()
|
||||||
return {link:link}
|
|
||||||
|
return {
|
||||||
|
templateUrl: "/partials/views/components/kanban-task.html"
|
||||||
|
link:link
|
||||||
|
require: "ngModel"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
module.directive("tgKanbanUserstory", KanbanUserstoryDirective)
|
module.directive("tgKanbanUserstory", KanbanUserstoryDirective)
|
||||||
|
|
|
@ -11,5 +11,4 @@ div.kanban-table
|
||||||
div.kanban-uses-box.task-column(ng-repeat="status in usStatusList track by status.id",
|
div.kanban-uses-box.task-column(ng-repeat="status in usStatusList track by status.id",
|
||||||
tg-kanban-sortable)
|
tg-kanban-sortable)
|
||||||
div.kanban-task(ng-repeat="us in usByStatus[status.id] track by us.id",
|
div.kanban-task(ng-repeat="us in usByStatus[status.id] track by us.id",
|
||||||
tg-kanban-userstory)
|
tg-kanban-userstory, ng-model="us")
|
||||||
include ../components/kanban-task
|
|
||||||
|
|
Loading…
Reference in New Issue