| | |
| | | name: "", |
| | | phone: "", |
| | | reservationNotifyTime : "", // 이메일 알림 시간 |
| | | realtimeNotify : "", // 이메일 실시간 |
| | | profileImage : null, // 업로드하는 프로필 |
| | | profileImageName : null // 프로필 명 |
| | | } |
| | |
| | | $scope.vm.form.name = result.data.data.name; |
| | | $scope.vm.form.account = result.data.data.account; |
| | | $scope.vm.form.phone = result.data.data.phone; |
| | | $scope.vm.form.reservationNotifyTime = result.data.data.reservationNotifyTime; |
| | | if(result.data.data.reservationNotifyTime === "realTime"){ |
| | | $scope.vm.form.reservationNotifyTime = ""; |
| | | $scope.vm.form.realtimeNotify = true; |
| | | }else{ |
| | | $scope.vm.form.reservationNotifyTime = result.data.data.reservationNotifyTime; |
| | | } |
| | | } |
| | | else { |
| | | SweetAlert.swal($filter("translate")("users.failedToSelectUserDetail"), result.data.message.message, "error"); // "사용자 상세 정보 조회 실패" |
| | |
| | | content.name = $rootScope.preventXss(content.name); |
| | | content.phone = $rootScope.preventXss(content.phone); |
| | | content.profile = $scope.vm.form.profileImageName; |
| | | if(content.realtimeNotify){ |
| | | content.reservationNotifyTime = "realTime"; |
| | | }else { |
| | | content.reservationNotifyTime = $scope.vm.form.reservationNotifyTime; |
| | | } |
| | | |
| | | User.modify({ |
| | | method : "POST", |