Address state fix #325
This commit is contained in:
parent
ca0524f24b
commit
125c6dea37
|
@ -109,16 +109,16 @@ export default class Controller {
|
||||||
);
|
);
|
||||||
} else if (canSubmitWatcher && !canSubmitObservations) {
|
} else if (canSubmitWatcher && !canSubmitObservations) {
|
||||||
this.$scope.watcher.submit().then(() => {
|
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();
|
this.card.reload();
|
||||||
});
|
});
|
||||||
} else if (!canSubmitWatcher && canSubmitObservations) {
|
} else if (!canSubmitWatcher && canSubmitObservations) {
|
||||||
this._submitObservations(observationsObj).then(() => {
|
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) {
|
} else if (canSubmitWatcher && canSubmitObservations) {
|
||||||
this.$q.all([this.$scope.watcher.submit(), this._submitObservations(observationsObj)]).then(() => {
|
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 {
|
} else {
|
||||||
this.vnApp.showMessage(
|
this.vnApp.showMessage(
|
||||||
|
|
Loading…
Reference in New Issue