summaryrefslogtreecommitdiffstats
path: root/settings/src/App.vue
diff options
context:
space:
mode:
Diffstat (limited to 'settings/src/App.vue')
-rw-r--r--settings/src/App.vue16
1 files changed, 16 insertions, 0 deletions
diff --git a/settings/src/App.vue b/settings/src/App.vue
new file mode 100644
index 00000000000..4e1708bed4f
--- /dev/null
+++ b/settings/src/App.vue
@@ -0,0 +1,16 @@
+<template>
+ <router-view></router-view>
+</template>
+
+<script>
+export default {
+ name: 'App',
+ beforeMount: function() {
+ // importing server data into the store
+ const serverDataElmt = document.getElementById('serverData');
+ if (serverDataElmt !== null) {
+ this.$store.commit('setServerData', JSON.parse(document.getElementById('serverData').dataset.server));
+ }
+ }
+}
+</script>