From f62df1f4aadeaee456859cf6842540e4fd135201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 27 Sep 2022 16:10:17 +0200 Subject: [PATCH] Add 'my groups' to avatar menu --- webapp/components/AvatarMenu/AvatarMenu.vue | 7 ++++++- webapp/locales/de.json | 7 ++++++- webapp/locales/en.json | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/webapp/components/AvatarMenu/AvatarMenu.vue b/webapp/components/AvatarMenu/AvatarMenu.vue index 061e96221..5caec07f2 100644 --- a/webapp/components/AvatarMenu/AvatarMenu.vue +++ b/webapp/components/AvatarMenu/AvatarMenu.vue @@ -72,10 +72,15 @@ export default { } const routes = [ { - name: this.$t('profile.name'), + name: this.$t('header.avatarMenu.myProfile'), path: `/profile/${this.user.id}/${this.user.slug}`, icon: 'user', }, + { + name: this.$t('header.avatarMenu.myGroups'), + path: '/my-groups', + icon: 'users', + }, { name: this.$t('notifications.pageLink'), path: '/notifications', diff --git a/webapp/locales/de.json b/webapp/locales/de.json index d9590709f..fd3c7a666 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -443,6 +443,12 @@ "hashtag-search": "Suche nach #{hashtag}", "title": "Deine Filterblase" }, + "header": { + "avatarMenu": { + "myGroups": "Mein Gruppen", + "myProfile": "Mein Profil" + } + }, "index": { "change-filter-settings": "Verändere die Filter-Einstellungen, um mehr Ergebnisse zu erhalten.", "no-results": "Keine Beiträge gefunden." @@ -601,7 +607,6 @@ "title": "Lade jemanden zu {APPLICATION_NAME} ein!" }, "memberSince": "Mitglied seit", - "name": "Mein Profil", "network": { "andMore": "und {number} weitere …", "followedBy": "wird gefolgt von:", diff --git a/webapp/locales/en.json b/webapp/locales/en.json index ac06d1bce..c8a4bd78e 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -443,6 +443,12 @@ "hashtag-search": "Searching for #{hashtag}", "title": "Your filter bubble" }, + "header": { + "avatarMenu": { + "myGroups": "My groups", + "myProfile": "My profile" + } + }, "index": { "change-filter-settings": "Change your filter settings to get more results.", "no-results": "No contributions found." @@ -601,7 +607,6 @@ "title": "Invite somebody to {APPLICATION_NAME}!" }, "memberSince": "Member since", - "name": "My Profile", "network": { "andMore": "and {number} more …", "followedBy": "is followed by:",