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