mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
New Settings Menu, Routes and Controllers Organization (#641)
* Add new settings routes and controllers * Add new settings view, restructure controllers and routes * Fix lint errors
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
import { Controller } from "@hotwired/stimulus"
|
||||
import { install, uninstall } from "@github/hotkey"
|
||||
import { Controller } from "@hotwired/stimulus";
|
||||
import { install, uninstall } from "@github/hotkey";
|
||||
|
||||
// Connects to data-controller="hotkey"
|
||||
export default class extends Controller {
|
||||
connect() {
|
||||
install(this.element)
|
||||
install(this.element);
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
uninstall(this.element)
|
||||
uninstall(this.element);
|
||||
}
|
||||
|
||||
navigateBack(event) {
|
||||
window.history.back();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user