refresh current project on save attributes
parent
18eb327345
commit
eda2f74c45
|
@ -134,7 +134,7 @@ module.controller("ProjectValuesController", ProjectValuesController)
|
|||
## Project values directive
|
||||
#############################################################################
|
||||
|
||||
ProjectValuesDirective = ($log, $repo, $confirm, $location, animationFrame, $translate, $rootscope) ->
|
||||
ProjectValuesDirective = ($log, $repo, $confirm, $location, animationFrame, $translate, $rootscope, projectService) ->
|
||||
## Drag & Drop Link
|
||||
|
||||
linkDragAndDrop = ($scope, $el, $attrs) ->
|
||||
|
@ -214,6 +214,8 @@ ProjectValuesDirective = ($log, $repo, $confirm, $location, animationFrame, $tra
|
|||
row.addClass("hidden")
|
||||
row.siblings(".visualization").removeClass('hidden')
|
||||
|
||||
projectService.fetchProject()
|
||||
|
||||
promise.then null, (data) ->
|
||||
form.setErrors(data)
|
||||
|
||||
|
@ -328,7 +330,7 @@ ProjectValuesDirective = ($log, $repo, $confirm, $location, animationFrame, $tra
|
|||
return {link:link}
|
||||
|
||||
module.directive("tgProjectValues", ["$log", "$tgRepo", "$tgConfirm", "$tgLocation", "animationFrame",
|
||||
"$translate", "$rootScope", ProjectValuesDirective])
|
||||
"$translate", "$rootScope", "tgProjectService", ProjectValuesDirective])
|
||||
|
||||
|
||||
#############################################################################
|
||||
|
|
Loading…
Reference in New Issue