Skip to content

Commit

Permalink
[AN/USER] 예매 선택을 하지 않으면 버튼이 비활성화 하도록 수정 (#423) (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
re4rk authored and BGuga committed Oct 17, 2023
1 parent a84377f commit 9537bcb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class TicketReserveBottomSheetFragment : BottomSheetDialogFragment() {

private val ticketTypeAdapter = TicketReserveBottomSheetAdapter { ticketId ->
binding.selectedTicketTypeId = ticketId
binding.btnReserveTicket.isEnabled = true
}

override fun onCreate(savedInstanceState: Bundle?) {
Expand Down Expand Up @@ -55,6 +56,7 @@ class TicketReserveBottomSheetFragment : BottomSheetDialogFragment() {
binding.rvTicketTypes.adapter = ticketTypeAdapter
val onReserve: (Int) -> Unit = { id -> vm.reserveTicket(id) }
binding.onReserve = onReserve
binding.btnReserveTicket.isEnabled = false
}

override fun onDestroyView() {
Expand Down

0 comments on commit 9537bcb

Please sign in to comment.