Use transient for info and sucess alerts

Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
This commit is contained in:
Andre Wanlin
2023-06-17 11:34:51 -05:00
parent 1240df156b
commit 2e036369d8
8 changed files with 25 additions and 2 deletions
@@ -73,7 +73,11 @@ export const GroupProfileCard = (props: {
const refreshEntity = useCallback(async () => {
await catalogApi.refreshEntity(stringifyEntityRef(group));
alertApi.post({ message: 'Refresh scheduled', severity: 'info' });
alertApi.post({
message: 'Refresh scheduled',
severity: 'info',
display: 'transient',
});
}, [catalogApi, alertApi, group]);
if (!group) {