Skip to content

Commit

Permalink
added once to load htmx trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
AlxEnashi committed May 8, 2024
1 parent fd3e95c commit 2b2f3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/cardLightCurve.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class CardLightCurve extends Vue {
const url = `${this.$config.ztfApiv2Url}/lightcurve/htmx/lightcurve?oid=${objectId}`
const myDiv = document.getElementById('lightcurve-app')
if (myDiv) {
myDiv.innerHTML = `<div hx-get=${url} hx-trigger="updateLightcurve from:body" hx-swap="outerHTML"></div>`
myDiv.innerHTML = `<div hx-get=${url} hx-trigger="updateLightcurve once from:body" hx-swap="outerHTML"></div>`
htmx.process(myDiv)
document.body.dispatchEvent(new Event('updateLightcurve'))
}
Expand Down

0 comments on commit 2b2f3ce

Please sign in to comment.