From c13bdfc20e4aa5815631b5f46ab377ea9aabe8ce Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 21 Feb 2024 09:16:58 -0800 Subject: [PATCH] Add Rails UJS back to the javascript (#997) 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 --- app/javascript/entrypoints/application.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/javascript/entrypoints/application.js b/app/javascript/entrypoints/application.js index 910b9449..81ad412e 100644 --- a/app/javascript/entrypoints/application.js +++ b/app/javascript/entrypoints/application.js @@ -25,6 +25,7 @@ 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 @@ -32,6 +33,8 @@ import '../../assets/stylesheets/application.scss'; 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++) {