13 lines
358 B
JavaScript
13 lines
358 B
JavaScript
import {showDealModal} from "./deal-view-modal.js";
|
|
|
|
const table = document.querySelector('.ui-table')
|
|
if (table) {
|
|
const btns = table.querySelectorAll('.view-deal-btn');
|
|
btns.forEach(btn => {
|
|
btn.addEventListener('click', async () => {
|
|
let dealId = btn.dataset.dealId;
|
|
await showDealModal(dealId)
|
|
})
|
|
})
|
|
}
|