Merge pull request #217 from taigaio/removing-unneeded-stats-on-kanban

Removing unneeded stats on kanban controller
stable
Alejandro 2014-12-22 16:56:36 +01:00
commit 1f4ffeb40c
1 changed files with 0 additions and 14 deletions

View File

@ -120,19 +120,6 @@ class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
console.log "FAIL" # TODO
# Load data methods
loadProjectStats: ->
return @rs.projects.stats(@scope.projectId).then (stats) =>
@scope.stats = stats
if stats.total_points
completedPercentage = Math.round(100 * stats.closed_points / stats.total_points)
else
completedPercentage = 0
@scope.stats.completedPercentage = "#{completedPercentage}%"
return stats
refreshTagsColors: ->
return @rs.projects.tagsColors(@scope.projectId).then (tags_colors) =>
@scope.project.tags_colors = tags_colors
@ -157,7 +144,6 @@ class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
loadKanban: ->
return @q.all([
@.refreshTagsColors(),
@.loadProjectStats(),
@.loadUserstories()
])