feat: add re-import from system buttons for Samba and NFS

Add 'Re-importar del sistema' buttons to the Samba and NFS pages,
mirroring the existing user import flow. Both buttons show a confirm
dialog before calling the respective /api/import/{samba,nfs} endpoints
which replace the DB table with the current system config.

Version bump: 0.6.0 → 0.6.1
This commit is contained in:
2026-07-06 22:29:39 -04:00
parent 03e9368a91
commit 155b5a4b21
4 changed files with 37 additions and 7 deletions
+2
View File
@@ -215,6 +215,8 @@ export const api = {
deleteWatchedMount: (id: number) => request<void>("DELETE", `/system/watched-mounts/${id}`),
// import
importSamba: () => request<{ imported: number; message?: string }>("POST", "/import/samba"),
importNfs: () => request<{ imported: number; message?: string }>("POST", "/import/nfs"),
importUsers: () => request<{ imported: number; message?: string }>("POST", "/import/users"),
// files