Add editable Samba global configuration with net conf setparm

Backend:
- Use 'net conf setparm' to update individual parameters
- Accept dictionary of key-value pairs in API

Frontend:
- Add Edit/Cancel/Save buttons to Samba Config tab
- Inline editing of configuration values
- Save changes back to registry

Changes are applied immediately via net conf setparm.

Co-Authored-By: Patrick <patrick@perlbach24.de>
This commit is contained in:
2026-04-22 01:31:14 +02:00
parent a373378691
commit 07cf45a481
4 changed files with 77 additions and 39 deletions
+5
View File
@@ -287,6 +287,11 @@ export class ZFSManagerAPI {
return response.data
}
async setSambaConfig(parameters: { [key: string]: string }): Promise<{ status: string }> {
const response = await this.client.put("/api/shares/samba/config", { parameters })
return response.data
}
// Shares — NFS
async getNfsShares(): Promise<NfsShare[]> {
const response = await this.client.get("/api/shares/nfs")