feat(tenancy): add resend invitation for pending team members
Some checks failed
Some checks failed
New resend_invitation() service method regenerates the token and
resends the invitation email for pending members.
Available on all frontends:
- Merchant: POST /merchants/account/team/stores/{sid}/members/{uid}/resend
- Store: POST /store/team/members/{uid}/resend
UI: paper-airplane icon appears on pending members in both merchant
and store team pages.
i18n: resend_invitation + invitation_resent keys in 4 locales.
Also translated previously untranslated invitation_sent_successfully
in fr/de/lb.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -151,6 +151,13 @@
|
||||
</template>
|
||||
<template x-if="!member.is_owner">
|
||||
<div class="flex items-center gap-2">
|
||||
<button x-show="getMemberStatus(member) === 'pending'"
|
||||
@click="resendInvitation(member)"
|
||||
:disabled="saving"
|
||||
class="p-1.5 text-gray-500 hover:text-green-600 dark:text-gray-400 dark:hover:text-green-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"
|
||||
:title="$t('tenancy.team.resend_invitation')">
|
||||
<span x-html="$icon('paper-airplane', 'w-4 h-4')"></span>
|
||||
</button>
|
||||
<button @click="openEditModal(member)"
|
||||
class="p-1.5 text-gray-500 hover:text-purple-600 dark:text-gray-400 dark:hover:text-purple-400 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg transition-colors"
|
||||
:title="$t('tenancy.team.edit_member')">
|
||||
|
||||
@@ -115,6 +115,16 @@
|
||||
<!-- Actions -->
|
||||
<td class="px-4 py-3">
|
||||
<div class="flex items-center space-x-2 text-sm">
|
||||
<!-- Resend invitation - pending only -->
|
||||
<button
|
||||
@click="resendInvitation(member)"
|
||||
:disabled="saving"
|
||||
class="p-1 text-gray-500 hover:text-green-600 dark:text-gray-400 dark:hover:text-green-400"
|
||||
title="Resend Invitation"
|
||||
x-show="member.invitation_pending"
|
||||
>
|
||||
<span x-html="$icon('paper-airplane', 'w-5 h-5')"></span>
|
||||
</button>
|
||||
<!-- Edit button - not for owners -->
|
||||
<button
|
||||
@click="openEditModal(member)"
|
||||
|
||||
Reference in New Issue
Block a user