Skip to content

Commit

Permalink
more channel button work
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwi committed Jan 27, 2024
1 parent e3003ba commit 2d00ba1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions public/full.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,22 +886,13 @@ function setupAddressModal() {

addressModal.addEventListener('show.bs.modal', event => {
const button = event.relatedTarget

const addressName = button.getAttribute('data-bs-name')
const address = __addressData.addresses.find(address => address.name === addressName)
updateAddressModal(address)
})

addressModal.addEventListener('hidden.bs.modal', event => {
updateAddressModal({
name: '',
display_name: '',
resouce_id: null,
cover_url: null,
preview_url: null,
type: null,
channels: []
})
updateAddressModal({name: '',display_name: '',resouce_id: null,cover_url: null,preview_url: null,type: null,channels: []})
})
}

Expand Down

0 comments on commit 2d00ba1

Please sign in to comment.