Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Inject moment to app.config so template can use it

Tianzhou Chen6578bd752dc2
diff --git a/frontend/src/main.js b/frontend/src/main.js
index 7f0e14bcde..f0960250a5 100644
--- a/frontend/src/main.js
+++ b/frontend/src/main.js
@@ -1,5 +1,6 @@
import { createApp } from "vue";
import App from "./App.vue";
+import moment from "moment";
import { store } from "./store";
import { router } from "./router";
import "./index.css";
@@ -29,6 +30,8 @@ const app = createApp(App);
app.config.globalProperties.window = window;
// Allow template to access console object
app.config.globalProperties.console = console;
+// Allow template to access moment object
+app.config.globalProperties.moment = moment;
app
.use(store)