Skip to content
Snippets Groups Projects
Commit 633d94a5 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Import graphql queries instead of using require

parent 9fcfa3b3
No related branches found
No related tags found
2 merge requests!1123Resolve "Finalise Vuetify app as SPA",!1066Translations update from Weblate
Pipeline #104057 canceled
......@@ -229,6 +229,11 @@ import CeleryProgressBottom from "./components/celery_progress/CeleryProgressBot
import Loading from "./components/Loading.vue";
import BrandLogo from "./components/BrandLogo.vue";
import gqlCurrentUser from "./currentUser.graphql";
import gqlWhoAmI from "./whoAmI.graphql";
import gqlMessages from "./messages.graphql";
import gqlSystemProperties from "./systemProperties.graphql";
function buildMenu(routes, menuKey) {
let menu = {};
......@@ -288,17 +293,13 @@ export default {
},
},
apollo: {
currentUser: {
query: require("./currentUser.graphql"),
},
whoAmI: {
query: require("./whoAmI.graphql"),
},
currentUser: gqlCurrentUser,
whoAmI: gqlWhoAmI,
messages: {
query: require("./messages.graphql"),
query: gqlMessages,
pollInterval: 1000,
},
systemProperties: require("./systemProperties.graphql"),
systemProperties: gqlSystemProperties,
},
watch: {
systemProperties: function (newProperties) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment