feat: add per-state action dropdowns and table view to ZeroTier All Approvals
This commit is contained in:
+7
-1
@@ -434,6 +434,8 @@ async function request<T>(
|
||||
|
||||
if (shouldClearToken) {
|
||||
tokenManager.clearToken();
|
||||
// Dispatch event so the UI can show a session timeout modal
|
||||
window.dispatchEvent(new CustomEvent('session:expired'));
|
||||
if (import.meta.env.DEV) {
|
||||
console.log(`[API] Token cleared on 401 (type: ${errorType}, endpoint: ${endpoint})`);
|
||||
}
|
||||
@@ -2114,9 +2116,13 @@ export interface UserNetworkApproval {
|
||||
user_name: string | null;
|
||||
user_email: string | null;
|
||||
portal_network_id: string;
|
||||
device_id?: string;
|
||||
active?: boolean;
|
||||
active_session?: ActivationSession | null;
|
||||
join_seen?: boolean;
|
||||
granted_by_user_id: string | null;
|
||||
grant_type: ApprovalGrantType;
|
||||
state: ApprovalState;
|
||||
status: ApprovalState;
|
||||
justification: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
|
||||
Reference in New Issue
Block a user