feat(invitations): implement pending invitations feature with polling and dialog
Added functionality for managing pending invitations, including a polling mechanism to update the invitation count in real-time. Introduced a new dialog component for users to view and respond to their invitations without navigating away from their current context. Updated API endpoints for fetching and managing invitations, and enhanced the user interface with relevant internationalization support. Refs: #1303
This commit is contained in:
@@ -178,7 +178,7 @@ import { getCurrentUser, type TenantInfo } from '@/api/auth'
|
||||
import { updateTenant as updateTenantApi } from '@/api/tenant'
|
||||
import {
|
||||
leaveTenant,
|
||||
listMembers,
|
||||
fetchAllTenantMembers,
|
||||
type TenantMember,
|
||||
type TenantRole,
|
||||
} from '@/api/tenant/members'
|
||||
@@ -245,10 +245,7 @@ async function evaluateLeaveGate(): Promise<void> {
|
||||
|
||||
leaveGateLoading.value = true
|
||||
try {
|
||||
const resp = await listMembers(infoId)
|
||||
if (resp.success && resp.data?.members) {
|
||||
leaveMembersSnap.value = resp.data.members
|
||||
}
|
||||
leaveMembersSnap.value = await fetchAllTenantMembers(infoId)
|
||||
} finally {
|
||||
leaveGateLoading.value = false
|
||||
leaveGateReady.value = true
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user