Refresh project on set homepage
parent
254e7384cb
commit
f019be3d3b
|
@ -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 = =>
|
||||||
|
|
Loading…
Reference in New Issue