Skip to content

Commit 7e6413b

Browse files
committed
Close agent name edit modal after save
1 parent 8a0e737 commit 7e6413b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: libs/ui-lib/lib/cim/components/modals/EditAgentModal.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const EditAgentModal: React.FC<EditAgentModalProps> = ({ agent, onSave, ...rest
1010
host={host}
1111
inventory={agent?.status?.inventory}
1212
{...rest}
13-
onSave={async ({ hostname }) => agent && onSave(agent, hostname)}
13+
onSave={async ({ hostname }) => {
14+
agent && (await onSave(agent, hostname));
15+
rest.onClose();
16+
}}
1417
/>
1518
);
1619
};

0 commit comments

Comments
 (0)