Clear picture in between loads

This commit is contained in:
anomny
2025-11-03 20:06:06 +01:00
parent a74be66e47
commit c3973b6cfb
3 changed files with 6 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ public class GroupModel
string? descriptionValue = ldapData.GetValueOrDefault("description");
if (descriptionValue is null)
{
DisplayName = Cn;
Permissions = [];
}
else

View File

@@ -23,7 +23,10 @@ public class MigrationService : IHostedService
await MigrateAsync();
}
public async Task StopAsync(CancellationToken cancellationToken) { }
public async Task StopAsync(CancellationToken cancellationToken)
{
await Task.CompletedTask;
}
public async Task<MigrationModel> MigrateAsync()
{

View File

@@ -758,6 +758,7 @@
// Photo
const imgEl = row.querySelector('td:first-child img');
const detailPhoto = document.getElementById('detailPhoto');
detailPhoto.src = '';
detailPhoto.src = `/Home/UserPhoto?uid=${data.uid}&size=256`;
detailModal.show();
});