fix turbo on dashboard + optimize a few more things.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { Controller } from "/vendor/hotwired/stimulus.js";
|
||||
|
||||
export default class extends Controller {
|
||||
static values = { message: String };
|
||||
|
||||
confirm(event) {
|
||||
if (!this.hasMessageValue || window.confirm(this.messageValue)) return;
|
||||
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user