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'),