mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
fix reviews
This commit is contained in:
parent
17891c93ae
commit
69620ca8d7
@ -2,10 +2,10 @@
|
||||
<ds-container class="group-card">
|
||||
<ds-space>
|
||||
<div @click="onlyOwnerGroups(true)" ref="myGruops">
|
||||
<ds-button>{{ $t('group.show-my-created-groups') }}</ds-button>
|
||||
<ds-button>{{ $t('group.showMyCreatedGroups') }}</ds-button>
|
||||
</div>
|
||||
<div @click="onlyOwnerGroups(false)" ref="allGruops" hidden>
|
||||
<ds-button>{{ $t('group.show-all-my-groups') }}</ds-button>
|
||||
<ds-button>{{ $t('group.showAllMyGroups') }}</ds-button>
|
||||
</div>
|
||||
</ds-space>
|
||||
<ds-space margin-bottom="small" v-for="item in items" :key="item.id">
|
||||
@ -23,7 +23,7 @@
|
||||
{{ item.myRole }}
|
||||
</ds-chip>
|
||||
</ds-text>
|
||||
<ds-space margin-top="small">
|
||||
<ds-space v-if="item.about" margin-top="small">
|
||||
<ds-text bold>{{ item.about }}</ds-text>
|
||||
</ds-space>
|
||||
<ds-space margin-top="small">
|
||||
@ -79,7 +79,7 @@ export default {
|
||||
mutation: joinGroupMutation,
|
||||
variables,
|
||||
})
|
||||
this.$toast.success(this.$t('group.group-created'))
|
||||
this.$toast.success(this.$t('group.groupCreated'))
|
||||
} catch (error) {
|
||||
this.$toast.error(error.message)
|
||||
}
|
||||
|
||||
@ -34,10 +34,10 @@
|
||||
<ds-modal
|
||||
v-if="isOpen"
|
||||
v-model="isOpen"
|
||||
:title="`${$t('group.remove-member')} ?`"
|
||||
:title="`${$t('group.removeMember')} ?`"
|
||||
force
|
||||
extended
|
||||
:confirm-label="$t('group.remove-member')"
|
||||
:confirm-label="$t('group.removeMember')"
|
||||
@confirm="deleteMember(memberId)"
|
||||
:cancel-label="$t('actions.cancel')"
|
||||
/>
|
||||
@ -74,7 +74,7 @@ export default {
|
||||
mutation: changeGroupMemberRoleMutation,
|
||||
variables: { groupId: this.groupId, userId: id, roleInGroup: newRole },
|
||||
})
|
||||
this.$toast.success(this.$t('group.change-member-role', { role: newRole }))
|
||||
this.$toast.success(this.$t('group.changeMemberRole', { role: newRole }))
|
||||
} catch (error) {
|
||||
this.$toast.error(error.message)
|
||||
}
|
||||
|
||||
@ -384,12 +384,12 @@
|
||||
},
|
||||
"actionRadius": "Aktionsradius",
|
||||
"back": "zurück",
|
||||
"change-member-role": "Die Rolle wurde auf ({role}) geändert!",
|
||||
"changeMemberRole": "Die Rolle wurde auf ({role}) geändert!",
|
||||
"follow": "Folge",
|
||||
"foundation": "Gründung",
|
||||
"general": "Allgemein",
|
||||
"goal": "Ziel der Gruppe",
|
||||
"group-created": "Die Gruppe wurde angelegt!",
|
||||
"groupCreated": "Die Gruppe wurde angelegt!",
|
||||
"group-name": "Gruppenname",
|
||||
"group-updated": "Die Gruppendaten wurden geändert!",
|
||||
"joinLeaveButton": {
|
||||
@ -408,7 +408,7 @@
|
||||
"myGroups": "Meine Gruppen",
|
||||
"newGroup": "Erstelle eine neue Gruppe",
|
||||
"radius": "Radius",
|
||||
"remove-member": "Mitglied entfernen",
|
||||
"removeMember": "Mitglied entfernen",
|
||||
"reset-form": "Formular zurücksetzen",
|
||||
"role": "Deine Rolle in der Gruppe",
|
||||
"roles": {
|
||||
@ -420,8 +420,8 @@
|
||||
"save": "Neue Gruppe anlegen",
|
||||
"settings": "Gruppeneinstellungen",
|
||||
"short-description": "Kurzbeschreibung",
|
||||
"show-all-my-groups": "Alle meine Gruppen anzeigen",
|
||||
"show-my-created-groups": "Meine angelegten Gruppen anzeigen",
|
||||
"showAllMyGroups": "Alle meine Gruppen anzeigen",
|
||||
"showMyCreatedGroups": "Meine angelegten Gruppen anzeigen",
|
||||
"type": "Gruppentyp",
|
||||
"types": {
|
||||
"closed": "Geschlossene Gruppe",
|
||||
|
||||
@ -384,12 +384,12 @@
|
||||
},
|
||||
"actionRadius": "Action radius",
|
||||
"back": "back",
|
||||
"change-member-role": "The role has been changed to ({role})!",
|
||||
"changeMemberRole": "The role has been changed to ({role})!",
|
||||
"follow": "Follow",
|
||||
"foundation": "Foundation",
|
||||
"general": "General",
|
||||
"goal": "Goal of group",
|
||||
"group-created": "The group was created!",
|
||||
"groupCreated": "The group was created!",
|
||||
"group-name": "Group name",
|
||||
"group-updated": "The group data has been changed.",
|
||||
"joinLeaveButton": {
|
||||
@ -408,7 +408,7 @@
|
||||
"myGroups": "My Groups",
|
||||
"newGroup": "Create a new Group",
|
||||
"radius": "Radius",
|
||||
"remove-member": "Remove member",
|
||||
"removeMember": "Remove member",
|
||||
"reset-form": "Reset form",
|
||||
"role": "Your role in the group",
|
||||
"roles": {
|
||||
@ -420,8 +420,8 @@
|
||||
"save": "Create new group",
|
||||
"settings": "Group Settings",
|
||||
"short-description": "Short description",
|
||||
"show-all-my-groups": "show all groups",
|
||||
"show-my-created-groups": "show only my groups",
|
||||
"showAllMyGroups": "show all groups",
|
||||
"showMyCreatedGroups": "show only my groups",
|
||||
"type": "Group type",
|
||||
"types": {
|
||||
"closed": "Closed Group",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<ds-section>
|
||||
<h1 class="ds-heading ds-heading-h1">{{ $t('group.newGroup') }}Create New Groupe</h1>
|
||||
<h1 class="ds-heading ds-heading-h1">{{ $t('group.newGroup') }}</h1>
|
||||
</ds-section>
|
||||
<ds-space margin="large">
|
||||
<ds-flex :width="{ base: '100%' }" gutter="base">
|
||||
@ -44,7 +44,7 @@ export default {
|
||||
mutation: createGroupMutation,
|
||||
variables,
|
||||
})
|
||||
this.$toast.success(this.$t('group.group-created'))
|
||||
this.$toast.success(this.$t('group.groupCreated'))
|
||||
} catch (error) {
|
||||
this.$toast.error(error.message)
|
||||
}
|
||||
|
||||
@ -32,8 +32,8 @@ export default {
|
||||
variables: { id: this.group.id },
|
||||
})
|
||||
this.responseGroupMembersQuery = response.data.GroupMembers
|
||||
} catch (error) {
|
||||
this.responseGroupMembersQuery = []
|
||||
} catch (err) {
|
||||
this.$toast.error(err.message)
|
||||
} finally {
|
||||
this.pending = false
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user