Skip to content

Commit

Permalink
v2.0.3
Browse files Browse the repository at this point in the history
* Ajout GroupDisabledReason SUSPENDED

Non participation aux frais
  • Loading branch information
Mandrak-Kimigo authored Nov 7, 2024
1 parent dbcd8f4 commit 5b6a3c0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/api-core/src/groups/entities/group.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { VolunteerRoleEntity } from './volunteer-role.entity';
export enum GroupDisabledReason {
BLOCKED_BY_ADMIN = 'BLOCKED_BY_ADMIN',
MOVED = 'MOVED',
SUSPENDED = 'SUSPENDED',
}

@Index('Group_userId', ['userId'], {})
Expand Down
3 changes: 2 additions & 1 deletion packages/front-core/src/gql/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export type Group = {

export enum GroupDisabledReason {
BLOCKED_BY_ADMIN = 'BLOCKED_BY_ADMIN',
MOVED = 'MOVED'
MOVED = 'MOVED',
SUSPENDED = 'SUSPENDED',
}

export type GroupPreview = {
Expand Down
2 changes: 1 addition & 1 deletion packages/front-core/src/gql/introspection.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const GroupDisabled = ({ groupId }: { groupId: number }) => {
if (!group.disabled) return null;

return (
<Paper elevation={0} sx={{ mb: 2 }}>
<Paper elevation={2} sx={{ mb: 2 }}>
<Box p={2} width={'100%'} textAlign="center">
<Typography variant="h2" gutterBottom>
{t(group.disabled)}
Expand Down
1 change: 1 addition & 0 deletions public/locales/fr/group-disabled.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"BLOCKED_BY_ADMIN": "Ce groupe a été bloqué, veuillez contacter [email protected]",
"MOVED": "Ce groupe a déménagé",
"SUSPENDED": "Ce groupe a été suspendu car il n'est pas à jour de sa participation annuelle aux frais d'hébergement. Veuillez contacter [email protected]",
"goToNewAddress": "Aller à la nouvelle adresse"
}

0 comments on commit 5b6a3c0

Please sign in to comment.