diff --git a/android/app/build.gradle b/android/app/build.gradle
index d14aa07c..99349226 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -6,8 +6,8 @@ android {
applicationId "org.ilovefreegle.direct"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 1205
- versionName "3.0.3"
+ versionCode 1207
+ versionName "3.0.5"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
diff --git a/android/app/src/main/res/xml/config.xml b/android/app/src/main/res/xml/config.xml
index 0400b2ac..021d4b21 100644
--- a/android/app/src/main/res/xml/config.xml
+++ b/android/app/src/main/res/xml/config.xml
@@ -2,6 +2,10 @@
+
+
+
+
diff --git a/api/BaseAPI.js b/api/BaseAPI.js
index a6e86096..b3b27495 100644
--- a/api/BaseAPI.js
+++ b/api/BaseAPI.js
@@ -173,7 +173,7 @@ export default class BaseAPI {
console.log('Log it?', log)
if (log) {
- Sentry.captureException(
+ Sentry.captureMessage(
'API request failed ' +
path +
' returned HTTP ' +
@@ -368,7 +368,7 @@ export default class BaseAPI {
const log = typeof logError === 'function' ? logError(data) : logError
if (log) {
- Sentry.captureException(
+ Sentry.captureMessage(
'API request failed ' +
path +
' returned HTTP ' +
diff --git a/api/CommunityEventAPI.js b/api/CommunityEventAPI.js
index 596393e0..6573bd36 100644
--- a/api/CommunityEventAPI.js
+++ b/api/CommunityEventAPI.js
@@ -9,6 +9,10 @@ export default class CommunityEventAPI extends BaseAPI {
return this.$getv2('/communityevent')
}
+ listGroup(id) {
+ return this.$getv2('/communityevent/group/' + id)
+ }
+
save(data) {
return this.$patch('/communityevent', data)
}
diff --git a/api/ConfigAPI.js b/api/ConfigAPI.js
index c9e25c41..d5c8a0f1 100644
--- a/api/ConfigAPI.js
+++ b/api/ConfigAPI.js
@@ -2,7 +2,7 @@ import BaseAPI from '@/api/BaseAPI'
export default class ConfigAPI extends BaseAPI {
async get(params) {
- const ret = await this.$get('/config', params)
- return ret.values
+ // https://api.ilovefreegle.org/apiv2/config/app_fd_version_android_latest etc
+ return await this.$getv2('/config/' + params.key)
}
}
diff --git a/api/VolunteeringAPI.js b/api/VolunteeringAPI.js
index 98ec78f8..cae81c47 100644
--- a/api/VolunteeringAPI.js
+++ b/api/VolunteeringAPI.js
@@ -9,6 +9,10 @@ export default class VolunteeringAPI extends BaseAPI {
return this.$getv2('/volunteering')
}
+ listGroup(id) {
+ return this.$getv2('/volunteering/group/' + id)
+ }
+
save(data) {
return this.$patch('/volunteering', data)
}
diff --git a/app.vue b/app.vue
index 9a6c61e8..194ef7cf 100644
--- a/app.vue
+++ b/app.vue
@@ -4,13 +4,13 @@
-
+
diff --git a/components/ChatMessageSummary.vue b/components/ChatMessageSummary.vue
index 14f113db..8258fcd6 100644
--- a/components/ChatMessageSummary.vue
+++ b/components/ChatMessageSummary.vue
@@ -154,7 +154,7 @@ export default {
this.imageBroken = true
},
click() {
- if (this.message.fromuser === this.myid) {
+ if (this.myid && this.message.fromuser === this.myid) {
this.$router.push('/mypost/' + this.id)
} else {
this.$router.push('/message/' + this.id)
diff --git a/components/DraggableMap.vue b/components/DraggableMap.vue
index ea2ee87d..9c88d5e3 100644
--- a/components/DraggableMap.vue
+++ b/components/DraggableMap.vue
@@ -48,6 +48,11 @@ export default {
required: false,
default: 5,
},
+ maxZoom: {
+ type: Number,
+ required: false,
+ default: MAX_MAP_ZOOM,
+ }
},
async setup() {
const runtimeConfig = useRuntimeConfig()
@@ -73,7 +78,6 @@ export default {
mapObject: null,
center: [53.945, -2.5209],
zoom: 14,
- maxZoom: MAX_MAP_ZOOM,
}
},
computed: {
diff --git a/components/EmailBelongsToSomeoneElse.vue b/components/EmailBelongsToSomeoneElse.vue
index f3fafd7f..fb0c7699 100644
--- a/components/EmailBelongsToSomeoneElse.vue
+++ b/components/EmailBelongsToSomeoneElse.vue
@@ -6,15 +6,35 @@
{{ ours }}as {{ myid }}, but {{ theirs }} belongs to another account.
- If they are both yours, you can ask the volunteers to merge your accounts
- from Help.
+ If they are both yours, you can ask the
+ {{ group?.namedisplay }} volunteers to merge your accounts.
+ Request merge
+
diff --git a/components/GroupHeader.vue b/components/GroupHeader.vue
index f36e2d8d..ca9f3bde 100644
--- a/components/GroupHeader.vue
+++ b/components/GroupHeader.vue
@@ -197,7 +197,6 @@ export default {
description = description.replace(/<\/p>/g, '')
}
- console.log('Return', description)
return description
},
},
diff --git a/components/MessageList.vue b/components/MessageList.vue
index 59d0e112..7342f507 100644
--- a/components/MessageList.vue
+++ b/components/MessageList.vue
@@ -125,6 +125,11 @@ export default {
required: false,
default: false,
},
+ none: {
+ type: Boolean,
+ required: false,
+ default: false,
+ },
},
async setup(props) {
const groupStore = useGroupStore()
diff --git a/components/MessageMap.vue b/components/MessageMap.vue
index d77cd4ff..e7ecbaf3 100644
--- a/components/MessageMap.vue
+++ b/components/MessageMap.vue
@@ -98,7 +98,7 @@ export default {
new this.L.marker([this.home.lat, this.home.lng]),
])
- let fitTo = fg.getBounds().pad(0.1)
+ const fitTo = fg.getBounds().pad(0.1)
if (fitTo.isValid()) {
themap.fitBounds(fitTo)
}
diff --git a/components/NewsReplies.vue b/components/NewsReplies.vue
index 75d32530..6ecb3476 100644
--- a/components/NewsReplies.vue
+++ b/components/NewsReplies.vue
@@ -22,7 +22,7 @@