Refresh project on set homepage

stable
Álex Hermida 2018-11-26 13:48:39 +01:00 committed by Alex Hermida
parent 254e7384cb
commit f019be3d3b
1 changed files with 3 additions and 1 deletions

View File

@ -40,9 +40,10 @@ class UserProjectSettingsController extends mixOf(taiga.Controller, taiga.PageMi
"$tgResources" "$tgResources"
"$tgRepo" "$tgRepo"
"$tgConfirm" "$tgConfirm"
"tgCurrentUserService"
] ]
constructor: (@scope, @tgSections, @rs, @repo, @confirm) -> constructor: (@scope, @tgSections, @rs, @repo, @confirm, @currentUserService) ->
@scope.sections = @tgSections.list() @scope.sections = @tgSections.list()
promise = @.loadInitialData() promise = @.loadInitialData()
@ -54,6 +55,7 @@ class UserProjectSettingsController extends mixOf(taiga.Controller, taiga.PageMi
updateCustomHomePage: (projectSettings) -> updateCustomHomePage: (projectSettings) ->
onSuccess = => onSuccess = =>
@currentUserService.loadProjects()
@confirm.notify("success") @confirm.notify("success")
onError = => onError = =>