From 5511ef2537e5fb2f8777c3e16a24b3cb58d5cd0e Mon Sep 17 00:00:00 2001 From: Bernat Exposito Domenech Date: Thu, 9 Jan 2020 12:39:03 +0100 Subject: [PATCH] client address index --- modules/client/front/address/index/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/client/front/address/index/index.js b/modules/client/front/address/index/index.js index 5ba2ad063..a7b9bc23b 100644 --- a/modules/client/front/address/index/index.js +++ b/modules/client/front/address/index/index.js @@ -2,10 +2,12 @@ import ngModule from '../../module'; import './style.scss'; class Controller { - constructor($http, $scope, $stateParams) { + constructor($http, $scope, $stateParams, $translate, vnApp) { this.$http = $http; this.$scope = $scope; this.$stateParams = $stateParams; + this.$translate = $translate; + this.vnApp = vnApp; this.filter = { fields: [ 'id', @@ -51,6 +53,7 @@ class Controller { if (res.data) { this.client.defaultAddressFk = res.data.defaultAddressFk; this.sortAddresses(); + this.vnApp.showSuccess(this.$translate.instant('Data saved!')); } }); } @@ -69,7 +72,7 @@ class Controller { }); } } -Controller.$inject = ['$http', '$scope', '$stateParams']; +Controller.$inject = ['$http', '$scope', '$stateParams', '$translate', 'vnApp']; ngModule.component('vnClientAddressIndex', { template: require('./index.html'),