feat(notifications): integrate nuxtui toast composable for success messages in RCloneConfig component

This commit is contained in:
Ajit Mehrotra
2025-12-15 14:56:14 -05:00
parent d10e0540eb
commit fd1a04641a

View File

@@ -132,13 +132,15 @@ const submitForm = async () => {
};
// Handle successful creation
const toast = useToast();
onCreateDone(async ({ data }) => {
// Show success message
if (window.toast) {
window.toast.success('Remote Configuration Created', {
description: `Successfully created remote "${formState.value.name}"`,
});
}
toast.add({
title: 'Remote Configuration Created',
description: `Successfully created remote "${formState.value.name}"`,
color: 'success',
});
console.log('[RCloneConfig] onCreateDone', data);