|
|
|
@ -521,8 +521,8 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$http.post('/sys/partners', $scope.partner).then(function (resp) {
|
|
|
|
|
commonDialog.alert({title: 'Success', content: 'Register new partner successfully', type: 'success'});
|
|
|
|
|
$scope.updateMerchantLocation();
|
|
|
|
|
$scope.loadPartners();
|
|
|
|
|
$state.go('^.detail', {clientMoniker: resp.data.client_moniker})
|
|
|
|
|
// $scope.loadPartners();
|
|
|
|
|
$state.go('partners.detail', {clientMoniker: resp.data.client_moniker})
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
|
});
|
|
|
|
|