1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-20 21:59:38 +02:00
Maybe/app/javascript/controllers/hotkey_controller.js
Zach Gollwitzer 9bda7efc3f
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
2024-04-18 07:56:51 -04:00

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();
}
}