오디션 지원 완료 다이얼로그 추가
This commit is contained in:
		@@ -35,7 +35,7 @@ final class AuditionRoleDetailViewModel: ObservableObject {
 | 
			
		||||
    @Published var phoneNumber = ""
 | 
			
		||||
    
 | 
			
		||||
    @Published var isShowNotifyVote = true
 | 
			
		||||
    @Published var isShowSodaDialog = false
 | 
			
		||||
    @Published var isShowVoteCompleteView = false
 | 
			
		||||
    @Published var isShowNoticeReapply = false
 | 
			
		||||
    @Published var dialogTitle = ""
 | 
			
		||||
    @Published var dialogDesc = ""
 | 
			
		||||
@@ -236,8 +236,6 @@ final class AuditionRoleDetailViewModel: ObservableObject {
 | 
			
		||||
                        let decoded = try jsonDecoder.decode(ApiResponseWithoutData.self, from: responseData)
 | 
			
		||||
                        
 | 
			
		||||
                        if decoded.success {
 | 
			
		||||
                            self.errorMessage = "오디션 지원이 완료되었습니다."
 | 
			
		||||
                            self.isShowPopup = true
 | 
			
		||||
                            self.deleteAllRecordingFilesWithNamePrefix("voiceon_now_voice")
 | 
			
		||||
                            
 | 
			
		||||
                            self.phoneNumber = ""
 | 
			
		||||
@@ -291,7 +289,7 @@ final class AuditionRoleDetailViewModel: ObservableObject {
 | 
			
		||||
                        if self.isShowNotifyVote {
 | 
			
		||||
                            self.dialogTitle = "[오디션 응원]"
 | 
			
		||||
                            self.dialogDesc = "오디션을 응원하셨습니다\n(무료응원 : 1계정당 1일 1회)\n1캔으로 추가 응원을 해보세요."
 | 
			
		||||
                            self.isShowSodaDialog = true
 | 
			
		||||
                            self.isShowVoteCompleteView = true
 | 
			
		||||
                        }
 | 
			
		||||
                        
 | 
			
		||||
                        if let index = self.applicantList.firstIndex(where: { $0.applicantId == applicantId }) {
 | 
			
		||||
@@ -306,7 +304,7 @@ final class AuditionRoleDetailViewModel: ObservableObject {
 | 
			
		||||
                            if message.contains("오늘 응원은 여기까지") {
 | 
			
		||||
                                self.dialogTitle = "[오늘 응원 제한]"
 | 
			
		||||
                                self.dialogDesc = "오늘 응원은 여기까지!\n하루 최대 10회까지 이용이 가능합니다.\n내일 다시 이용해주세요."
 | 
			
		||||
                                self.isShowSodaDialog = true
 | 
			
		||||
                                self.isShowVoteCompleteView = true
 | 
			
		||||
                            } else {
 | 
			
		||||
                                self.errorMessage = message
 | 
			
		||||
                                self.isShowPopup = true
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user