You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ya...@apache.org on 2026/10/18 03:04:28 UTC
(airavata-custos) 09/12: surface allocation member remove and role errors
This is an automated email from the ASF dual-hosted git repository.
yasithdev pushed a commit to branch stack-bugfixes
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git
commit 8bda0bf65eceeaefaa9310ef49d52e1e496fcfa2
Author: Yasith Jayawardana <ya...@icloud.com>
AuthorDate: Sat Oct 17 22:52:44 2026 -0400
surface allocation member remove and role errors
---
.../features/core/allocations/components/AllocationMembersTab.tsx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/web/src/features/core/allocations/components/AllocationMembersTab.tsx b/web/src/features/core/allocations/components/AllocationMembersTab.tsx
index 3e9b793d1..b6395b7ff 100644
--- a/web/src/features/core/allocations/components/AllocationMembersTab.tsx
+++ b/web/src/features/core/allocations/components/AllocationMembersTab.tsx
@@ -197,7 +197,9 @@ export function AllocationMembersTab({
size="sm"
allowed={canEditAccess}
reason={requires("allocationsWrite")}
- onClick={() => removeMutation.mutate(row.id)}
+ onClick={() =>
+ removeMutation.mutate(row.id, { onError: (err) => toast.error(err.message) })
+ }
aria-label={`Remove ${row.display_name ?? row.user_id}`}
disabled={removeMutation.isPending}
>
@@ -212,7 +214,7 @@ export function AllocationMembersTab({
if (!editing) return;
roleMutation.mutate(
{ userId: editing.user_id, payload },
- { onSuccess: () => setEditing(null) },
+ { onSuccess: () => setEditing(null), onError: (err) => toast.error(err.message) },
);
}