Cosmetic changes on taskboard module.
parent
01af3f66e0
commit
96f1bd44e6
|
@ -22,6 +22,12 @@
|
||||||
taiga = @.taiga
|
taiga = @.taiga
|
||||||
mixOf = @.taiga.mixOf
|
mixOf = @.taiga.mixOf
|
||||||
|
|
||||||
|
module = angular.module("taigaTaskboard", [])
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
## Taskboard Controller
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin)
|
class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
@.$inject = [
|
@.$inject = [
|
||||||
"$scope",
|
"$scope",
|
||||||
|
@ -88,6 +94,7 @@ class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
.then(=> @.loadUsersAndRoles())
|
.then(=> @.loadUsersAndRoles())
|
||||||
.then(=> @.loadTaskboard())
|
.then(=> @.loadTaskboard())
|
||||||
|
|
||||||
|
module.controller("TaskboardController", TaskboardController)
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
## TaskboardDirective
|
## TaskboardDirective
|
||||||
|
@ -112,6 +119,8 @@ TaskboardDirective = ->
|
||||||
return {link: link}
|
return {link: link}
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: the name of this directive should be changet
|
||||||
|
# to more apropiate, like: TaskboardRowsizeFixer
|
||||||
TaskboardTaskrowDirective = ->
|
TaskboardTaskrowDirective = ->
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
taiga.bindOnce $scope, "taskStatusList", (statuses) ->
|
taiga.bindOnce $scope, "taskStatusList", (statuses) ->
|
||||||
|
@ -122,7 +131,7 @@ TaskboardTaskrowDirective = ->
|
||||||
return {link: link}
|
return {link: link}
|
||||||
|
|
||||||
|
|
||||||
UsStatus = ->
|
UsStatusDirective = ->
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
$scope.$watch "#{$attrs.tgTaskboardUsStatus}.status", (status_id) ->
|
$scope.$watch "#{$attrs.tgTaskboardUsStatus}.status", (status_id) ->
|
||||||
if status_id is undefined
|
if status_id is undefined
|
||||||
|
@ -132,8 +141,6 @@ UsStatus = ->
|
||||||
|
|
||||||
return {link:link}
|
return {link:link}
|
||||||
|
|
||||||
module = angular.module("taigaTaskboard", [])
|
|
||||||
module.controller("TaskboardController", TaskboardController)
|
|
||||||
module.directive("tgTaskboard", TaskboardDirective)
|
module.directive("tgTaskboard", TaskboardDirective)
|
||||||
module.directive("tgTaskboardTaskrow", TaskboardTaskrowDirective)
|
module.directive("tgTaskboardTaskrow", TaskboardTaskrowDirective)
|
||||||
module.directive("tgTaskboardUsStatus", UsStatus)
|
module.directive("tgTaskboardUsStatus", UsStatusDirective)
|
||||||
|
|
Loading…
Reference in New Issue