mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-04 08:35:32 +00:00
rename route from my-groups to groups
This commit is contained in:
parent
7f22b5fb62
commit
3bf26de650
@ -90,10 +90,10 @@ describe('AvatarMenu.vue', () => {
|
||||
expect(profileLink.exists()).toBe(true)
|
||||
})
|
||||
|
||||
it('displays a link to "My groups"', () => {
|
||||
it('displays a link to "Groups"', () => {
|
||||
const profileLink = wrapper
|
||||
.findAll('.ds-menu-item span')
|
||||
.at(wrapper.vm.routes.findIndex((route) => route.path === '/my-groups'))
|
||||
.at(wrapper.vm.routes.findIndex((route) => route.path === '/groups'))
|
||||
expect(profileLink.exists()).toBe(true)
|
||||
})
|
||||
|
||||
|
||||
@ -77,8 +77,8 @@ export default {
|
||||
icon: 'user',
|
||||
},
|
||||
{
|
||||
name: this.$t('header.avatarMenu.myGroups'),
|
||||
path: '/my-groups',
|
||||
name: this.$t('header.avatarMenu.Groups'),
|
||||
path: '/groups',
|
||||
icon: 'users',
|
||||
},
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<nuxt-link to="/my-groups"><base-button icon="users" circle ghost /></nuxt-link>
|
||||
<nuxt-link to="/groups"><base-button icon="users" circle ghost /></nuxt-link>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -163,7 +163,7 @@
|
||||
|
||||
<!-- submit -->
|
||||
<ds-space margin-top="large">
|
||||
<nuxt-link to="/my-groups">
|
||||
<nuxt-link to="/groups">
|
||||
<ds-button>{{ $t('actions.cancel') }}</ds-button>
|
||||
</nuxt-link>
|
||||
<ds-button type="submit" icon="save" primary :disabled="checkFormError(errors)" fill>
|
||||
|
||||
@ -427,6 +427,7 @@
|
||||
"general": "Allgemein",
|
||||
"goal": "Ziel der Gruppe",
|
||||
"groupCreated": "Die Gruppe wurde angelegt!",
|
||||
"Groups": "Gruppen",
|
||||
"in": "in",
|
||||
"joinLeaveButton": {
|
||||
"iAmMember": "Bin Mitglied",
|
||||
@ -448,7 +449,6 @@
|
||||
"membersCount": "Mitglied ::: Mitglieder",
|
||||
"membersListTitle": "Gruppenmitglieder",
|
||||
"membersListTitleNotAllowedSeeingGroupMembers": "Gruppenmitglieder unsichtbar",
|
||||
"myGroups": "Meine Gruppen",
|
||||
"name": "Gruppenname",
|
||||
"radius": "Radius",
|
||||
"removeMember": "Mitglied aus der Gruppe entfernen?",
|
||||
@ -477,7 +477,7 @@
|
||||
},
|
||||
"header": {
|
||||
"avatarMenu": {
|
||||
"myGroups": "Mein Gruppen",
|
||||
"Groups": "Gruppen",
|
||||
"myProfile": "Mein Profil"
|
||||
}
|
||||
},
|
||||
|
||||
@ -427,6 +427,7 @@
|
||||
"general": "General",
|
||||
"goal": "Goal of group",
|
||||
"groupCreated": "The group was created!",
|
||||
"Groups": "Groups",
|
||||
"in": "in",
|
||||
"joinLeaveButton": {
|
||||
"iAmMember": "I'm a member",
|
||||
@ -448,7 +449,6 @@
|
||||
"membersCount": "Member ::: Members",
|
||||
"membersListTitle": "Group Members",
|
||||
"membersListTitleNotAllowedSeeingGroupMembers": "Group Members invisible",
|
||||
"myGroups": "My Groups",
|
||||
"name": "Group name",
|
||||
"radius": "Radius",
|
||||
"removeMember": "Remove member",
|
||||
@ -477,7 +477,7 @@
|
||||
},
|
||||
"header": {
|
||||
"avatarMenu": {
|
||||
"myGroups": "My groups",
|
||||
"Groups": "Groups",
|
||||
"myProfile": "My profile"
|
||||
}
|
||||
},
|
||||
|
||||
@ -58,7 +58,6 @@ export default {
|
||||
},
|
||||
})
|
||||
this.$toast.success(this.$t('group.groupCreated'))
|
||||
// this.$router.history.push('/my-groups')
|
||||
this.$router.history.push({
|
||||
name: 'group-id-slug',
|
||||
params: { id: responseId, slug: responseSlug },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user