Redone syncshell admin ui, fixed some bugs on edit profile.

This commit is contained in:
cake
2025-12-09 05:45:19 +01:00
parent 25f0d41581
commit 675918624d
12 changed files with 684 additions and 344 deletions

View File

@@ -151,6 +151,20 @@ public partial class ApiController
.ConfigureAwait(false);
}
public async Task<GroupPruneSettingsDto> GroupGetPruneSettings(GroupDto dto)
{
CheckConnection();
return await _lightlessHub!.InvokeAsync<GroupPruneSettingsDto>(nameof(GroupGetPruneSettings), dto)
.ConfigureAwait(false);
}
public async Task GroupSetPruneSettings(GroupPruneSettingsDto dto)
{
CheckConnection();
await _lightlessHub!.SendAsync(nameof(GroupSetPruneSettings), dto)
.ConfigureAwait(false);
}
private void CheckConnection()
{
if (ServerState is not (ServerState.Connected or ServerState.Connecting or ServerState.Reconnecting)) throw new InvalidDataException("Not connected");