Merge branch '1983-client_address' of verdnatura/salix into dev
gitea/salix/dev There was a failure building this commit Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-01-09 11:50:29 +00:00 committed by Gitea
commit 44c611db5b
1 changed files with 5 additions and 2 deletions

View File

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