mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-20 13:49:39 +02:00
* Add new settings routes and controllers * Add new settings view, restructure controllers and routes * Fix lint errors
17 lines
339 B
JavaScript
17 lines
339 B
JavaScript
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);
|
|
}
|
|
|
|
disconnect() {
|
|
uninstall(this.element);
|
|
}
|
|
|
|
navigateBack(event) {
|
|
window.history.back();
|
|
}
|
|
}
|