From 5050835d81135ce6410ec634a3698f8b4bb0c91f Mon Sep 17 00:00:00 2001 From: amaliadwiy Date: Wed, 29 Apr 2026 15:54:38 +0800 Subject: [PATCH] upd: tambah notifikasi success/error saat simpan Settings Co-Authored-By: Claude Sonnet 4.6 --- src/frontend/routes/dev.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/routes/dev.tsx b/src/frontend/routes/dev.tsx index 182c0d2..e4e2ccf 100644 --- a/src/frontend/routes/dev.tsx +++ b/src/frontend/routes/dev.tsx @@ -70,6 +70,7 @@ import { TbUserSearch, TbUsers, } from 'react-icons/tb' +import { notifications } from '@mantine/notifications' import { type Role, useLogout, useSession } from '@/frontend/hooks/useAuth' import { usePresence } from '@/frontend/hooks/usePresence' @@ -1517,6 +1518,10 @@ function SettingsPanel() { qc.invalidateQueries({ queryKey: ['admin', 'config'] }) setSaved(true) setTimeout(() => setSaved(false), 2000) + notifications.show({ color: 'green', title: 'Tersimpan', message: 'Konfigurasi berhasil disimpan.' }) + }, + onError: () => { + notifications.show({ color: 'red', title: 'Gagal', message: 'Terjadi kesalahan saat menyimpan konfigurasi.' }) }, })