Skip to content

Commit

Permalink
Add Rails UJS back to the javascript (#997)
Browse files Browse the repository at this point in the history
It previously was giving me a console warning when it was included; I guess that's resolved now, and we need it in order to log in to CAS
  • Loading branch information
sandbergja authored Feb 21, 2024
1 parent 1679156 commit c13bdfc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/javascript/entrypoints/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ import travelEstimateForm from "../components/travelEstimateForm.vue";
import travelRequestButton from "../components/travelRequestButton.vue";
import travelRequestDatePickers from "../components/travelRequestDatePickers.vue";
import '../../assets/stylesheets/application.scss';
import Rails from "@rails/ujs";

// Create a factory function that will create vue
// apps, which we can then mount to any element with
// the class .lux
const app = createApp({});
const createMyApp = () => createApp(app)

Rails.start();

document.addEventListener("DOMContentLoaded", () => {
const elements = document.getElementsByClassName("lux");
for (let i = 0; i < elements.length; i++) {
Expand Down

0 comments on commit c13bdfc

Please sign in to comment.