Unnest bubble filters

This commit is contained in:
Jose Farias
2024-11-05 13:04:05 -06:00
parent 26af27ba26
commit f2706d0f74
49 changed files with 381 additions and 437 deletions
@@ -0,0 +1,13 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static values = { fallbackDestination: String }
connect() {
if (history.state.turbo?.restorationIndex > 0) {
this.element.href = "javascript:history.back()"
} else {
this.element.href = this.fallbackDestinationValue
}
}
}