Fix load projects in link to epic
parent
3a5b5aa05d
commit
37511c367a
|
@ -1132,7 +1132,7 @@ module.directive("tgLbCreateEdit", [
|
||||||
|
|
||||||
debounceLeading = @.taiga.debounceLeading
|
debounceLeading = @.taiga.debounceLeading
|
||||||
|
|
||||||
RelateToEpicLightboxDirective = ($rootScope, $confirm, lightboxService, tgCurrentUserService
|
RelateToEpicLightboxDirective = ($rootScope, $confirm, lightboxService, $tgCurrentUserService
|
||||||
tgResources, $tgResources, $epicsService, tgAnalytics) ->
|
tgResources, $tgResources, $epicsService, tgAnalytics) ->
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
us = null
|
us = null
|
||||||
|
@ -1147,11 +1147,7 @@ tgResources, $tgResources, $epicsService, tgAnalytics) ->
|
||||||
|
|
||||||
loadProjects = ->
|
loadProjects = ->
|
||||||
if $scope.projects == null
|
if $scope.projects == null
|
||||||
$tgResources.projects.list({
|
$scope.projects = $tgCurrentUserService.projects.get("all")
|
||||||
blocked_code: 'null',
|
|
||||||
is_epics_activated: true
|
|
||||||
}).then (data) ->
|
|
||||||
$scope.projects = data
|
|
||||||
|
|
||||||
filterEpics = (selectedProjectId, filterText) ->
|
filterEpics = (selectedProjectId, filterText) ->
|
||||||
tgResources.epics.listInAllProjects(
|
tgResources.epics.listInAllProjects(
|
||||||
|
|
Loading…
Reference in New Issue