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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user