Implement invitation renewal and optimize revalidation function
This commit adds a new function to renew team invitations and a central function for revalidating member page. It also removes redundant revalidations across different actions. The renew invitation function and UI elements are introduced including a new dialog for confirming the renewal action. Furthermore, function revalidateMemberPage() is added to abstract the revalidation path used multiple times in different functions. The code readability and maintainability have thus been improved.
This commit is contained in:
@@ -135,6 +135,18 @@
|
||||
"updateInvitation": "Update Invitation",
|
||||
"removeInvitation": "Remove Invitation",
|
||||
"acceptInvitation": "Accept Invitation",
|
||||
"renewInvitation": "Renew Invitation",
|
||||
"resendInvitation": "Resend Invitation",
|
||||
"expiresAtLabel": "Expires at",
|
||||
"expired": "Expired",
|
||||
"active": "Active",
|
||||
"inviteStatus": "Status",
|
||||
"inviteNotFoundOrExpired": "Invite not found or expired",
|
||||
"inviteNotFoundOrExpiredDescription": "The invite you are looking for is either expired or does not exist. Please contact the team owner to renew the invite.",
|
||||
"backToHome": "Back to Home",
|
||||
"renewInvitationDialogDescription": "You are about to renew the invitation to {{ email }}. The user will be able to join the team.",
|
||||
"renewInvitationErrorTitle": "Sorry, we couldn't renew the invitation.",
|
||||
"renewInvitationErrorDescription": "We encountered an error renewing the invitation. Please try again.",
|
||||
"signInWithDifferentAccount": "Sign in with a different account",
|
||||
"signInWithDifferentAccountDescription": "If you wish to accept the invitation with a different account, please sign out and back in with the account you wish to use.",
|
||||
"acceptInvitationHeading": "Accept Invitation to join {{accountName}}",
|
||||
|
||||
Reference in New Issue
Block a user