From b9e4f8fc92fff1238c991a64e638b23541802b8c Mon Sep 17 00:00:00 2001 From: nelo Date: Mon, 16 Jan 2017 07:30:38 +0100 Subject: [PATCH] =?UTF-8?q?copy=20object=20para=20la=20modificaci=C3=B3n?= =?UTF-8?q?=20del=20cliente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- @salix/crud/src/client/basic-data/index.html | 2 +- @salix/crud/src/client/confirm/index.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/@salix/crud/src/client/basic-data/index.html b/@salix/crud/src/client/basic-data/index.html index a0cc06a34..8a1048a24 100644 --- a/@salix/crud/src/client/basic-data/index.html +++ b/@salix/crud/src/client/basic-data/index.html @@ -26,4 +26,4 @@ - + diff --git a/@salix/crud/src/client/confirm/index.js b/@salix/crud/src/client/confirm/index.js index f2960612a..5d4c2615c 100644 --- a/@salix/crud/src/client/confirm/index.js +++ b/@salix/crud/src/client/confirm/index.js @@ -7,14 +7,15 @@ export const COMPONENT = { controllerAs: 'clientConfirm', bindings: { state: '<', - client: '=' + client: '=', + clientOld: "=" }, controller: function($state, $element, copyObject){ var dialog = $element.find('dialog')[0] this.accept = function(){ - this.client.navigate = true; + copyObject(this.clientOld, this.client); $state.go(this.state); dialog.close(); }