diff --git a/app/js/controller.js b/app/js/controller.js index decb06ee..ecfe25fb 100644 --- a/app/js/controller.js +++ b/app/js/controller.js @@ -288,7 +288,7 @@ angular.module('reachRabbitApp.controller', ['reachRabbitApp.service']) $scope.hasPastMessage = function () { if(!$scope.msglist) return false; - if($scope.msglist.length == 0) return false; + if($scope.msglist.length === 0) return false; return $scope.totalElements > $scope.msglist.length; }; @@ -638,6 +638,7 @@ angular.module('reachRabbitApp.influencer.controller', ['reachRabbitApp.service' $scope.formData.bank = profile.data.influencer.bank; $scope.formData.accountNumber = profile.data.influencer.accountNumber; $scope.formData.accountName = profile.data.influencer.accountName; + $scope.formData.rememberBankDetail = true; }); InfluencerAccountService.getWallet().then(function (walletResponse) { @@ -1861,6 +1862,10 @@ angular.module('reachRabbitApp.portal.controller', ['reachRabbitApp.service']) }); } else { if (mediaId == 'facebook') { + if(response.data.pages.length <= 0) { + $scope.alert.danger('คุณต้องมี Facebook Page เพื่อทำการสมัครด้วย Facebook'); + return; + } $state.go('influencer-signup-select-page', { authData: response.data, ref: ref }); } else { if (response.data.pages[0].count < $scope.minFollower) { diff --git a/app/view/admin-transaction-detail.html b/app/view/admin-transaction-detail.html index d61c1ae8..f47b8fc3 100644 --- a/app/view/admin-transaction-detail.html +++ b/app/view/admin-transaction-detail.html @@ -6,7 +6,7 @@
-

รายละเอียดการสั่งซื้อ / Brand: {{ transaction.brandTransactionDocument.cart.proposals[0].campaign.brand.brandName | truncate: 30}}

+

รายละเอียดการสั่งซื้อ / Brand: {{ transaction.brandTransactionDocument[0].cart.proposals[0].campaign.brand.brandName | truncate: 30}}

diff --git a/app/view/influencer-wallet.html b/app/view/influencer-wallet.html index d8b0829a..0deb74a2 100644 --- a/app/view/influencer-wallet.html +++ b/app/view/influencer-wallet.html @@ -79,7 +79,7 @@

My Wallet

- +