mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
feat(notifications): integrate nuxtui toast composable for success messages in RCloneConfig component
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user