diff --git a/frontend/src/components/UserSettings/UserGmsLocationCapturing.vue b/frontend/src/components/UserSettings/UserGmsLocationCapturing.vue
index 8620ad318..2934afedb 100644
--- a/frontend/src/components/UserSettings/UserGmsLocationCapturing.vue
+++ b/frontend/src/components/UserSettings/UserGmsLocationCapturing.vue
@@ -33,8 +33,10 @@ import UserLocationMap from '@/components/UserSettings/UserLocationMap'
import { BButton, BModal } from 'bootstrap-vue-next'
import { userLocationQuery } from '@/graphql/queries'
import CONFIG from '@/config'
+import { useStore } from 'vuex'
const { t } = useI18n()
+const store = useStore()
const { mutate: updateUserInfo } = useMutation(updateUserInfos)
const { onResult, onError } = useQuery(userLocationQuery, {}, { fetchPolicy: 'network-only' })
const { toastSuccess, toastError } = useAppToast()
@@ -73,14 +75,11 @@ const saveUserLocation = async () => {
try {
const loc = { longitude: capturedLocation.value.lng, latitude: capturedLocation.value.lat }
- await updateUserInfo({
- gmsLocation: {
- longitude: capturedLocation.value.lng,
- latitude: capturedLocation.value.lat,
- },
- })
+ await updateUserInfo({ gmsLocation: loc })
toastSuccess(t('settings.GMS.location.updateSuccess'))
userLocation.value = capturedLocation.value
+ // update in local storage to update button on overview
+ store.commit('userLocation', loc)
isModalOpen.value = false
} catch (error) {
toastError(error.message)
diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json
index 7659b21eb..2407653a7 100644
--- a/frontend/src/locales/de.json
+++ b/frontend/src/locales/de.json
@@ -43,7 +43,7 @@
"card-user-search": {
"headline": "Geografische Mitgliedssuche (experimentell)",
"allowed": {
- "button": "Öffne Mitgliedsuche...",
+ "button": "Öffne Mitgliedssuche...",
"disabled-button": "GMS offline...",
"text": "Finde Mitglieder aller Communities auf einer Landkarte."
},
@@ -276,6 +276,7 @@
"recruited-member": "Eingeladenes Mitglied"
},
"h": "h",
+ "info": "Info",
"language": "Sprache",
"link-load": "den letzten Link nachladen | die letzten {n} Links nachladen",
"link-load-more": "weitere {n} Links nachladen",
@@ -334,7 +335,7 @@
"warningText": "Bist du noch da?"
},
"settings": {
- "community": "Kreise & Mitgliedsuche",
+ "community": "Kreise & Mitgliedssuche",
"emailInfo": "Kann aktuell noch nicht geändert werden.",
"GMS": {
"disabled": "Daten werden nicht nach GMS exportiert",
diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json
index a8b47b05c..77c18856d 100644
--- a/frontend/src/locales/en.json
+++ b/frontend/src/locales/en.json
@@ -276,6 +276,7 @@
"recruited-member": "Invited member"
},
"h": "h",
+ "info": "Info",
"language": "Language",
"link-load": "Load the last link | Load the last {n} links",
"link-load-more": "Load more {n} links",
diff --git a/frontend/vite.config.js b/frontend/vite.config.js
index 42e025e4b..28a222388 100644
--- a/frontend/vite.config.js
+++ b/frontend/vite.config.js
@@ -48,6 +48,10 @@ export default defineConfig(async ({ command }) => {
minify: CONFIG.PRODUCTION === true,
},
},
+ preview: {
+ host: CONFIG.FRONTEND_MODULE_HOST, // '0.0.0.0',
+ port: CONFIG.FRONTEND_MODULE_PORT, // 3000,
+ },
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),