change group views to add new parameters - #687
This commit is contained in:
@@ -60,6 +60,7 @@ export const GROUP_VERY_BASIC_FIELDS_FRAGMENTS = gql`
|
||||
visibility
|
||||
openness
|
||||
manuallyApprovesFollowers
|
||||
allowSeeParticipants
|
||||
physicalAddress {
|
||||
description
|
||||
street
|
||||
@@ -104,6 +105,7 @@ export const GROUP_BASIC_FIELDS_FRAGMENTS = gql`
|
||||
visibility
|
||||
openness
|
||||
manuallyApprovesFollowers
|
||||
allowSeeParticipants
|
||||
physicalAddress {
|
||||
description
|
||||
street
|
||||
@@ -301,6 +303,7 @@ export const CREATE_GROUP = gql`
|
||||
$visibility: GroupVisibility
|
||||
$openness: Openness
|
||||
$manuallyApprovesFollowers: Boolean
|
||||
$allowSeeParticipants: Boolean
|
||||
) {
|
||||
createGroup(
|
||||
preferredUsername: $preferredUsername
|
||||
@@ -312,6 +315,7 @@ export const CREATE_GROUP = gql`
|
||||
visibility: $visibility
|
||||
openness: $openness
|
||||
manuallyApprovesFollowers: $manuallyApprovesFollowers
|
||||
allowSeeParticipants: $allowSeeParticipants
|
||||
) {
|
||||
...ActorFragment
|
||||
banner {
|
||||
@@ -334,6 +338,7 @@ export const UPDATE_GROUP = gql`
|
||||
$openness: Openness
|
||||
$physicalAddress: AddressInput
|
||||
$manuallyApprovesFollowers: Boolean
|
||||
$allowSeeParticipants: Boolean
|
||||
) {
|
||||
updateGroup(
|
||||
id: $id
|
||||
@@ -345,6 +350,7 @@ export const UPDATE_GROUP = gql`
|
||||
openness: $openness
|
||||
physicalAddress: $physicalAddress
|
||||
manuallyApprovesFollowers: $manuallyApprovesFollowers
|
||||
allowSeeParticipants: $allowSeeParticipants
|
||||
) {
|
||||
...GroupVeryBasicFields
|
||||
}
|
||||
|
||||
@@ -176,6 +176,9 @@
|
||||
"Back to profile list": "Back to profile list",
|
||||
"Back to top": "Back to top",
|
||||
"Back to user list": "Back to user list",
|
||||
"Ban": "Ban",
|
||||
"Ban the account": "Ban the account",
|
||||
"Ban the account?": "Ban the account?",
|
||||
"Banner": "Banner",
|
||||
"Become part of the community and start organizing events": "Become part of the community and start organizing events",
|
||||
"Before you can login, you need to click on the link inside it to validate your account.": "Before you can login, you need to click on the link inside it to validate your account.",
|
||||
@@ -370,8 +373,8 @@
|
||||
"Do not receive any mail": "Do not receive any mail",
|
||||
"Do you really want to ban the account \u00ab\u00a0{emailAccount}\u00a0\u00bb\u00a0?": "Do you really want to ban the account \u00ab\u00a0{emailAccount}\u00a0\u00bb\u00a0?",
|
||||
"Do you really want to ban this account? All of the user's profiles will be deleted.": "Do you really want to ban this account? All of the user's profiles will be deleted.",
|
||||
"Do you really want to unban this account? The user will be able to log-in again.":"Do you really want to unban this account? The user will be able to log-in again.",
|
||||
"Do you really want to suspend this profile? All of the profiles content will be deleted.": "Do you really want to suspend this profile? All of the profiles content will be deleted.",
|
||||
"Do you really want to unban this account? The user will be able to log-in again.": "Do you really want to unban this account? The user will be able to log-in again.",
|
||||
"Do you wish to {create_event} or {explore_events}?": "Do you wish to {create_event} or {explore_events}?",
|
||||
"Do you wish to {create_group} or {explore_groups}?": "Do you wish to {create_group} or {explore_groups}?",
|
||||
"Does the event needs to be confirmed later or is it cancelled?": "Does the event needs to be confirmed later or is it cancelled?",
|
||||
@@ -692,6 +695,7 @@
|
||||
"Maybe the content was removed by the author or a moderator": "Maybe the content was removed by the author or a moderator",
|
||||
"Member": "Member",
|
||||
"Members": "Members",
|
||||
"Members can see events' participants": "Members can see events' participants",
|
||||
"Members will also access private sections like discussions, resources and restricted posts.": "Members will also access private sections like discussions, resources and restricted posts.",
|
||||
"Members-only post": "Members-only post",
|
||||
"Membership requests will be approved by a group moderator": "Membership requests will be approved by a group moderator",
|
||||
@@ -847,13 +851,13 @@
|
||||
"Only group moderators can create, edit and delete posts.": "Only group moderators can create, edit and delete posts.",
|
||||
"Only instances with an application actor can be followed": "Only instances with an application actor can be followed",
|
||||
"Only registered users may fetch remote events from their URL.": "Only registered users may fetch remote events from their URL.",
|
||||
"Open": "Open",
|
||||
"Open a topic on our forum": "Open a topic on our forum",
|
||||
"Open an issue on our bug tracker (advanced users)": "Open an issue on our bug tracker (advanced users)",
|
||||
"Open conversations": "Open conversations",
|
||||
"Open main menu": "Open main menu",
|
||||
"Open user menu": "Open user menu",
|
||||
"Opened reports": "Opened reports",
|
||||
"Open": "Open",
|
||||
"Options": "Options",
|
||||
"Or": "Or",
|
||||
"Ordered list": "Ordered list",
|
||||
@@ -890,20 +894,21 @@
|
||||
"Participation without account": "Participation without account",
|
||||
"Participations": "Participations",
|
||||
"Password": "Password",
|
||||
"Password and confirmation password must be identical.":"Password and confirmation password must be identical.",
|
||||
"Password (confirmation)": "Password (confirmation)",
|
||||
"Password and confirmation password must be identical.": "Password and confirmation password must be identical.",
|
||||
"Password reset": "Password reset",
|
||||
"Past activities": "Passed activities",
|
||||
"Past events": "Passed events",
|
||||
"PeerTube live": "PeerTube live",
|
||||
"PeerTube replay": "PeerTube replay",
|
||||
"Pending": "Pending",
|
||||
"Permission": "Permission",
|
||||
"Personal feeds": "Personal feeds",
|
||||
"Photo by {author} on {source}": "Photo by {author} on {source}",
|
||||
"Pick": "Pick",
|
||||
"Pick a profile or a group": "Pick a profile or a group",
|
||||
"Pick an identity": "Pick an identity",
|
||||
"Pick an instance": "Pick an instance",
|
||||
"Pick a profile or a group": "Pick a profile or a group",
|
||||
"Pick": "Pick",
|
||||
"Pictures": "Pictures",
|
||||
"Please add as many details as possible to help identify the problem.": "Please add as many details as possible to help identify the problem.",
|
||||
"Please check your spam folder if you didn't receive the email.": "Please check your spam folder if you didn't receive the email.",
|
||||
@@ -1113,10 +1118,7 @@
|
||||
"Subtitles": "Subtitles",
|
||||
"Suggestions:": "Suggestions:",
|
||||
"Suspend": "Suspend",
|
||||
"Ban": "Ban",
|
||||
"Suspend group": "Suspend group",
|
||||
"Ban the account": "Ban the account",
|
||||
"Ban the account?": "Ban the account?",
|
||||
"Suspend the profile": "Suspend the profile",
|
||||
"Suspend the profile?": "Suspend the profile?",
|
||||
"Suspended": "Suspended",
|
||||
@@ -1575,7 +1577,7 @@
|
||||
"Your participation still has to be approved by the organisers.": "Your participation still has to be approved by the organisers.",
|
||||
"Your participation will be validated once you click the confirmation link into the email, and after the organizer manually validates your participation.": "Your participation will be validated once you click the confirmation link into the email, and after the organizer manually validates your participation.",
|
||||
"Your participation will be validated once you click the confirmation link into the email.": "Your participation will be validated once you click the confirmation link into the email.",
|
||||
"Your password has been successfully changed. You now need to logged-in with your new password.":"Your password has been successfully changed. You now need to logged-in with your new password.",
|
||||
"Your password has been successfully changed. You now need to logged-in with your new password.": "Your password has been successfully changed. You now need to logged-in with your new password.",
|
||||
"Your position was not available.": "Your position was not available.",
|
||||
"Your profile will be shown as contact.": "Your profile will be shown as contact.",
|
||||
"Your timezone is currently set to {timezone}.": "Your timezone is currently set to {timezone}.",
|
||||
|
||||
@@ -695,6 +695,7 @@
|
||||
"Maybe the content was removed by the author or a moderator": "Peut-\u00eatre que le contenu a \u00e9t\u00e9 supprim\u00e9 par l'auteur\u00b7ice ou un\u00b7e mod\u00e9rateur\u00b7ice",
|
||||
"Member": "Membre",
|
||||
"Members": "Membres",
|
||||
"Members can see events' participants": "Les membres peuvent voir les participants des événements",
|
||||
"Members will also access private sections like discussions, resources and restricted posts.": "Les membres auront \u00e9galement acc\u00e8s aux section priv\u00e9es comme les discussions, les ressources et les billets restreints.",
|
||||
"Members-only post": "Billet reserv\u00e9 aux membres",
|
||||
"Membership requests will be approved by a group moderator": "Les demandes d'adh\u00e9sion seront approuv\u00e9es par un\u00b7e mod\u00e9rateur\u00b7ice du groupe",
|
||||
@@ -900,6 +901,7 @@
|
||||
"PeerTube live": "Direct sur PeerTube",
|
||||
"PeerTube replay": "Replay sur PeerTube",
|
||||
"Pending": "En attente",
|
||||
"Permission": "Permission",
|
||||
"Personal feeds": "Flux personnels",
|
||||
"Photo by {author} on {source}": "Photo par {author} sur {source}",
|
||||
"Pick an identity": "Choisissez une identit\u00e9",
|
||||
|
||||
@@ -23,6 +23,7 @@ export interface IGroup extends IActor {
|
||||
openness: Openness;
|
||||
visibility: GroupVisibility;
|
||||
manuallyApprovesFollowers: boolean;
|
||||
allowSeeParticipants: boolean;
|
||||
activity: Paginate<IActivity>;
|
||||
followers: Paginate<IFollower>;
|
||||
membersCount?: number;
|
||||
@@ -58,6 +59,8 @@ export class Group extends Actor implements IGroup {
|
||||
|
||||
manuallyApprovesFollowers = false;
|
||||
|
||||
allowSeeParticipants = true;
|
||||
|
||||
patch(hash: IGroup | Record<string, unknown>): void {
|
||||
Object.assign(this, hash);
|
||||
}
|
||||
|
||||
@@ -198,6 +198,16 @@
|
||||
{{ t("Manually approve new followers") }}
|
||||
</o-checkbox>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend class="mt-2">
|
||||
<span class="field-label !mb-0">
|
||||
{{ t("Permission") }}
|
||||
</span>
|
||||
</legend>
|
||||
<o-checkbox v-model="group.allowSeeParticipants">
|
||||
{{ t("Members can see events' participants") }}
|
||||
</o-checkbox>
|
||||
</fieldset>
|
||||
|
||||
<o-button
|
||||
variant="primary"
|
||||
@@ -297,6 +307,7 @@ const buildVariables = computed(() => {
|
||||
visibility: group.value.visibility,
|
||||
openness: group.value.openness,
|
||||
manuallyApprovesFollowers: group.value.manuallyApprovesFollowers,
|
||||
allowSeeParticipants: group.value.allowSeeParticipants,
|
||||
};
|
||||
|
||||
if (cloneGroup.physicalAddress?.id || cloneGroup.physicalAddress?.geom) {
|
||||
|
||||
@@ -157,6 +157,12 @@
|
||||
</o-checkbox>
|
||||
</o-field>
|
||||
|
||||
<o-field :label="t('Permission')">
|
||||
<o-checkbox v-model="editableGroup.allowSeeParticipants">
|
||||
{{ t("Members can see events' participants") }}
|
||||
</o-checkbox>
|
||||
</o-field>
|
||||
|
||||
<full-address-auto-complete
|
||||
:label="t('Group address')"
|
||||
v-model="currentAddress"
|
||||
@@ -340,6 +346,7 @@ const buildVariables = computed(() => {
|
||||
visibility: editableGroup.value?.visibility,
|
||||
openness: editableGroup.value?.openness,
|
||||
manuallyApprovesFollowers: editableGroup.value?.manuallyApprovesFollowers,
|
||||
allowSeeParticipants: editableGroup.value?.allowSeeParticipants,
|
||||
physicalAddress,
|
||||
...avatarObj,
|
||||
...bannerObj,
|
||||
|
||||
Reference in New Issue
Block a user