Skip to content

Commit

Permalink
feat(membership request): add failure messages (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
Defferrard authored Aug 12, 2024
1 parent 2d0b7b7 commit ce6cf6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ export const FAILURE_MESSAGES = {
'INVITATION_CSV_TEMPLATE_ITEM_DOES_NOT_EXIST',
INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM:
'INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM',
MEMBERSHIP_ALREADY_EXISTS: 'MEMBERSHIP_ALREADY_EXISTS',
MEMBERSHIP_REQUEST_ALREADY_EXISTS: 'MEMBERSHIP_REQUEST_ALREADY_EXISTS',
MEMBERSHIP_REQUEST_NOT_FOUND: 'MEMBERSHIP_REQUEST_NOT_FOUND',
};

export const DEFAULT_FAILURE_MESSAGE = FAILURE_MESSAGES.UNEXPECTED_ERROR;
Expand Down
5 changes: 4 additions & 1 deletion src/langs/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,8 @@
"INVITATION_CSV_NO_FILE_PROVIDED": "No file was provided. Please provide a file for creating bulk invitations",
"INVITATION_CSV_NO_DATA_IN_FILE": "No data was found in the file. Please send a file with valid data.",
"INVITATION_CSV_TEMPLATE_ITEM_DOES_NOT_EXIST": "The template item does not exist.",
"INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM": "Provided item is not a folder. A structure cannot be created inside an item that is not a folder."
"INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM": "Provided item is not a folder. A structure cannot be created inside an item that is not a folder.",
"MEMBERSHIP_ALREADY_EXISTS": "This account already has access to this item.",
"MEMBERSHIP_REQUEST_ALREADY_EXISTS": "This account has already requested a membership to the provided item.",
"MEMBERSHIP_REQUEST_NOT_FOUND": "Provided Membership Request not found."
}

0 comments on commit ce6cf6d

Please sign in to comment.