- Implement Stimulus controller for closing flash messages - Replace inline alerts with a partial for better organization - Enhance styling for user registration and login forms This update introduces a new flash message component that allows for user notifications to be displayed on the screen and closed by the user. The forms also include improved styles for a better user experience.
8 lines
195 B
JavaScript
8 lines
195 B
JavaScript
import { Controller } from "@hotwired/stimulus"
|
|
|
|
export default class extends Controller {
|
|
close(event) {
|
|
const target = event.target.closest('.alert')
|
|
target.remove()
|
|
}
|
|
} |