removed unused code

This commit is contained in:
Carlos Jimenez 2018-04-10 08:10:53 +02:00
parent 4b8ae91705
commit 3a798757cf
1 changed files with 0 additions and 2 deletions

View File

@ -112,12 +112,10 @@ export default class Controller {
this.$state.go('clientCard.addresses.list', {id: this.$state.params.id}); this.$state.go('clientCard.addresses.list', {id: this.$state.params.id});
}); });
} else if (!canSubmitWatcher && canSubmitObservations) { } else if (!canSubmitWatcher && canSubmitObservations) {
console.log('noWatcher canNotes');
this._submitObservations(observationsObj).then(() => { this._submitObservations(observationsObj).then(() => {
this.$state.go('clientCard.addresses.list', {id: this.$state.params.id}); this.$state.go('clientCard.addresses.list', {id: this.$state.params.id});
}); });
} else if (canSubmitWatcher && canSubmitObservations) { } else if (canSubmitWatcher && canSubmitObservations) {
console.log('canWatcher canNotes');
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('clientCard.addresses.list', {id: this.$state.params.id}); this.$state.go('clientCard.addresses.list', {id: this.$state.params.id});
}); });