From 125c6dea37123001290be1f278406cb0456df8da Mon Sep 17 00:00:00 2001 From: Joan Date: Mon, 28 May 2018 13:44:41 +0200 Subject: [PATCH] Address state fix #325 --- client/client/src/address/edit/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/client/src/address/edit/index.js b/client/client/src/address/edit/index.js index 6fa31a1c0..117560e06 100644 --- a/client/client/src/address/edit/index.js +++ b/client/client/src/address/edit/index.js @@ -109,16 +109,16 @@ export default class Controller { ); } else if (canSubmitWatcher && !canSubmitObservations) { this.$scope.watcher.submit().then(() => { - this.$state.go('client.card.addresses.list', {id: this.$state.params.id}); + this.$state.go('client.card.address.index', {id: this.$state.params.id}); this.card.reload(); }); } else if (!canSubmitWatcher && canSubmitObservations) { this._submitObservations(observationsObj).then(() => { - this.$state.go('client.card.addresses.list', {id: this.$state.params.id}); + this.$state.go('client.card.address.index', {id: this.$state.params.id}); }); } else if (canSubmitWatcher && canSubmitObservations) { this.$q.all([this.$scope.watcher.submit(), this._submitObservations(observationsObj)]).then(() => { - this.$state.go('client.card.addresses.list', {id: this.$state.params.id}); + this.$state.go('client.card.address.index', {id: this.$state.params.id}); }); } else { this.vnApp.showMessage(