From 5c9d06b5d2b60bbd73e8fe81977fce0e161f0891 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Thu, 16 May 2019 09:33:56 +0200 Subject: [PATCH] edit claim basic data for salesPerson #1433 --- modules/claim/front/basic-data/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/claim/front/basic-data/index.js b/modules/claim/front/basic-data/index.js index fa3306429..bc616dd5c 100644 --- a/modules/claim/front/basic-data/index.js +++ b/modules/claim/front/basic-data/index.js @@ -10,11 +10,10 @@ class Controller { } onSubmit() { - if (this.aclService.hasAny(['salesAssistant'])) { - this.$scope.watcher.submit().then(() => { + this.$scope.watcher.submit().then(() => { + if (this.aclService.hasAny(['salesAssistant'])) this.$state.go('claim.card.detail'); - }); - } + }); } }