From eda2f74c45a904ada9ec02c3f5fac365c9387500 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Wed, 25 Jan 2017 08:22:45 +0100 Subject: [PATCH] refresh current project on save attributes --- app/coffee/modules/admin/project-values.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/coffee/modules/admin/project-values.coffee b/app/coffee/modules/admin/project-values.coffee index 772ea749..7dd31a0f 100644 --- a/app/coffee/modules/admin/project-values.coffee +++ b/app/coffee/modules/admin/project-values.coffee @@ -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]) #############################################################################