diff --git a/webapp/components/FollowButton.spec.js b/webapp/components/Button/FollowButton.spec.js similarity index 100% rename from webapp/components/FollowButton.spec.js rename to webapp/components/Button/FollowButton.spec.js diff --git a/webapp/components/FollowButton.vue b/webapp/components/Button/FollowButton.vue similarity index 99% rename from webapp/components/FollowButton.vue rename to webapp/components/Button/FollowButton.vue index 126a3891d..a0807ed6c 100644 --- a/webapp/components/FollowButton.vue +++ b/webapp/components/Button/FollowButton.vue @@ -19,7 +19,6 @@ import { followUserMutation, unfollowUserMutation } from '~/graphql/User' export default { name: 'HcFollowButton', - props: { followId: { type: String, default: null }, isFollowed: { type: Boolean, default: false }, diff --git a/webapp/components/Button/JoinLeaveButton.vue b/webapp/components/Button/JoinLeaveButton.vue new file mode 100644 index 000000000..bb284dbef --- /dev/null +++ b/webapp/components/Button/JoinLeaveButton.vue @@ -0,0 +1,91 @@ + + + + + diff --git a/webapp/locales/de.json b/webapp/locales/de.json index 86602a7c1..1fc4e3fa7 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -373,6 +373,10 @@ "group": { "foundation": "GrĂ¼ndung", "goal": "Ziel:", + "joinLeaveButton": { + "iAmMember": "Bin Mitglied", + "join": "Beitreten" + }, "membersCount": "Mitglieder", "membersListTitle": "Gruppenmitglieder" }, diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 7e0def985..b1a9356a9 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -373,6 +373,10 @@ "group": { "foundation": "Foundation", "goal": "Goal:", + "joinLeaveButton": { + "iAmMember": "I'm a member", + "join": "Join" + }, "membersCount": "Members", "membersListTitle": "Group Members" }, diff --git a/webapp/locales/es.json b/webapp/locales/es.json index 791874729..63070ee4b 100644 --- a/webapp/locales/es.json +++ b/webapp/locales/es.json @@ -300,6 +300,10 @@ "group": { "foundation": null, "goal": null, + "joinLeaveButton": { + "iAmMember": null, + "join": null + }, "membersCount": null, "membersListTitle": null }, diff --git a/webapp/locales/fr.json b/webapp/locales/fr.json index 66675942c..91b91abe9 100644 --- a/webapp/locales/fr.json +++ b/webapp/locales/fr.json @@ -289,6 +289,10 @@ "group": { "foundation": null, "goal": null, + "joinLeaveButton": { + "iAmMember": null, + "join": null + }, "membersCount": null, "membersListTitle": null }, diff --git a/webapp/locales/it.json b/webapp/locales/it.json index c9ff7870b..342550a14 100644 --- a/webapp/locales/it.json +++ b/webapp/locales/it.json @@ -297,6 +297,10 @@ "group": { "foundation": null, "goal": null, + "joinLeaveButton": { + "iAmMember": null, + "join": null + }, "membersCount": null, "membersListTitle": null }, diff --git a/webapp/locales/nl.json b/webapp/locales/nl.json index 02039e0db..c7e474a3a 100644 --- a/webapp/locales/nl.json +++ b/webapp/locales/nl.json @@ -85,6 +85,10 @@ "group": { "foundation": null, "goal": null, + "joinLeaveButton": { + "iAmMember": null, + "join": null + }, "membersCount": null, "membersListTitle": null }, diff --git a/webapp/locales/pl.json b/webapp/locales/pl.json index c371a8831..840698487 100644 --- a/webapp/locales/pl.json +++ b/webapp/locales/pl.json @@ -169,6 +169,10 @@ "group": { "foundation": null, "goal": null, + "joinLeaveButton": { + "iAmMember": null, + "join": null + }, "membersCount": null, "membersListTitle": null }, diff --git a/webapp/locales/pt.json b/webapp/locales/pt.json index fe419f053..bec922edb 100644 --- a/webapp/locales/pt.json +++ b/webapp/locales/pt.json @@ -335,6 +335,10 @@ "group": { "foundation": null, "goal": null, + "joinLeaveButton": { + "iAmMember": null, + "join": null + }, "membersCount": null, "membersListTitle": null }, diff --git a/webapp/locales/ru.json b/webapp/locales/ru.json index bb0f34086..f50121635 100644 --- a/webapp/locales/ru.json +++ b/webapp/locales/ru.json @@ -314,6 +314,10 @@ "group": { "foundation": null, "goal": null, + "joinLeaveButton": { + "iAmMember": null, + "join": null + }, "membersCount": null, "membersListTitle": null }, diff --git a/webapp/pages/group/_id/_slug.vue b/webapp/pages/group/_id/_slug.vue index 2011e0a8c..f21a71942 100644 --- a/webapp/pages/group/_id/_slug.vue +++ b/webapp/pages/group/_id/_slug.vue @@ -49,7 +49,11 @@ - + @@ -72,7 +76,7 @@ --> -
+
+ +