This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a replacement for the built-in Rails ujs confirmation method when using Bootstrap. | |
// Trying to hook into the built-in stuff is a pain, and changes with every Rails (now Hotwire) | |
// version. | |
import { Controller } from "stimulus"; | |
import { Modal } from "bootstrap"; | |
export default class extends Controller { | |
static values = { | |
title: String, | |
message: String, |