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 "bulk" then @rootscope.$broadcast("usform:bulk", statusId)
|
||||
|
||||
changeUsAssignedTo: (us) ->
|
||||
@rootscope.$broadcast("assigned-to:add", us)
|
||||
|
||||
# Scope Events Handlers
|
||||
onNewUserstory: (ctx, us) ->
|
||||
@scope.usByStatus[us.status].splice(0, 0, us)
|
||||
|
||||
|
@ -191,9 +195,14 @@ module.directive("tgKanban", ["$tgRepo", "$rootScope", KanbanDirective])
|
|||
#############################################################################
|
||||
|
||||
KanbanUserstoryDirective = ->
|
||||
link = ($scope, $el, $attrs) ->
|
||||
link = ($scope, $el, $attrs, $model) ->
|
||||
$el.disableSelection()
|
||||
return {link:link}
|
||||
|
||||
return {
|
||||
templateUrl: "/partials/views/components/kanban-task.html"
|
||||
link:link
|
||||
require: "ngModel"
|
||||
}
|
||||
|
||||
|
||||
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",
|
||||
tg-kanban-sortable)
|
||||
div.kanban-task(ng-repeat="us in usByStatus[status.id] track by us.id",
|
||||
tg-kanban-userstory)
|
||||
include ../components/kanban-task
|
||||
tg-kanban-userstory, ng-model="us")
|
||||
|
|
Loading…
Reference in New Issue