Refresh project on set homepage
parent
254e7384cb
commit
f019be3d3b
|
@ -40,9 +40,10 @@ class UserProjectSettingsController extends mixOf(taiga.Controller, taiga.PageMi
|
|||
"$tgResources"
|
||||
"$tgRepo"
|
||||
"$tgConfirm"
|
||||
"tgCurrentUserService"
|
||||
]
|
||||
|
||||
constructor: (@scope, @tgSections, @rs, @repo, @confirm) ->
|
||||
constructor: (@scope, @tgSections, @rs, @repo, @confirm, @currentUserService) ->
|
||||
@scope.sections = @tgSections.list()
|
||||
|
||||
promise = @.loadInitialData()
|
||||
|
@ -54,6 +55,7 @@ class UserProjectSettingsController extends mixOf(taiga.Controller, taiga.PageMi
|
|||
|
||||
updateCustomHomePage: (projectSettings) ->
|
||||
onSuccess = =>
|
||||
@currentUserService.loadProjects()
|
||||
@confirm.notify("success")
|
||||
|
||||
onError = =>
|
||||
|
|
Loading…
Reference in New Issue