From 8ff8d55d6d35bd602da0172c73d89539a6249308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 26 Sep 2022 21:40:10 +0200 Subject: [PATCH 1/5] Implement 'GroupButton' in 'default' layout --- webapp/components/Group/GroupButton.vue | 5 +++++ webapp/layouts/default.vue | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 webapp/components/Group/GroupButton.vue diff --git a/webapp/components/Group/GroupButton.vue b/webapp/components/Group/GroupButton.vue new file mode 100644 index 000000000..2000e3046 --- /dev/null +++ b/webapp/components/Group/GroupButton.vue @@ -0,0 +1,5 @@ + diff --git a/webapp/layouts/default.vue b/webapp/layouts/default.vue index 3e2a4aa69..b23ed98ea 100644 --- a/webapp/layouts/default.vue +++ b/webapp/layouts/default.vue @@ -88,6 +88,9 @@ + + + @@ -125,7 +128,8 @@ import FilterMenu from '~/components/FilterMenu/FilterMenu.vue' import PageFooter from '~/components/PageFooter/PageFooter' import AvatarMenu from '~/components/AvatarMenu/AvatarMenu' import InviteButton from '~/components/InviteButton/InviteButton' -import CategoriesMenu from '~/components/FilterMenu/CategoriesMenu.vue' +import CategoriesMenu from '~/components/FilterMenu/CategoriesMenu' +import GroupButton from '~/components/Group/GroupButton' export default { components: { @@ -139,6 +143,7 @@ export default { PageFooter, InviteButton, CategoriesMenu, + GroupButton, }, mixins: [seo], data() { From 60b68ed63c8f1993095b78c1b8fe76cbdc8fb581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 27 Sep 2022 13:47:01 +0200 Subject: [PATCH 2/5] Add 'SHOW_GROUP_BUTTON_IN_HEADER' in 'groups.js', still unused --- webapp/constants/groups.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/constants/groups.js b/webapp/constants/groups.js index 3abf0d12a..1c49d3ff3 100644 --- a/webapp/constants/groups.js +++ b/webapp/constants/groups.js @@ -2,3 +2,4 @@ export const NAME_LENGTH_MIN = 3 export const NAME_LENGTH_MAX = 50 export const DESCRIPTION_WITHOUT_HTML_LENGTH_MIN = 100 // with removed HTML tags +export const SHOW_GROUP_BUTTON_IN_HEADER = true From 8867f8674f318d614c8cf9c13a36ebd1ac466a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 27 Sep 2022 16:09:33 +0200 Subject: [PATCH 3/5] Make group button in header configurable --- webapp/layouts/default.vue | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/webapp/layouts/default.vue b/webapp/layouts/default.vue index b23ed98ea..6fb3a2f54 100644 --- a/webapp/layouts/default.vue +++ b/webapp/layouts/default.vue @@ -88,7 +88,7 @@ - + @@ -115,21 +115,22 @@