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