Fix tasks #1231 and 1232: Add better taskboard and taiga-events integration

stable
Jesús Espino 2014-10-07 12:01:03 +02:00
parent be6b2c4ee0
commit f801b1399b
1 changed files with 6 additions and 0 deletions

View File

@ -88,6 +88,12 @@ class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin)
@events.subscribe @scope, routingKey, (message) =>
@.loadTaskboard()
routingKey1 = "changes.project.#{@scope.projectId}.userstories"
@events.subscribe @scope, routingKey1, (message) =>
@.refreshTagsColors()
@.loadSprintStats()
@.loadSprint()
loadProject: ->
return @rs.projects.get(@scope.projectId).then (project) =>
@scope.project = project