diff --git a/Components/Pages/Duplicates.razor b/Components/Pages/Duplicates.razor
index 7eff966..52cce6e 100644
--- a/Components/Pages/Duplicates.razor
+++ b/Components/Pages/Duplicates.razor
@@ -111,5 +111,5 @@
private void Cancel() => _cts?.Cancel();
private async Task ExportCsv() { await WebExport.DownloadCsvAsync(CsvExport.BuildCsv(_results), $"duplicates_{DateTime.Now:yyyyMMdd_HHmmss}.csv"); }
- private async Task ExportHtml() { await WebExport.DownloadHtmlAsync(HtmlExport.BuildHtml(_results), $"duplicates_{DateTime.Now:yyyyMMdd_HHmmss}.html"); }
+ private async Task ExportHtml() { await WebExport.DownloadHtmlAsync(HtmlExport.BuildHtml(_results, Session.CurrentBranding), $"duplicates_{DateTime.Now:yyyyMMdd_HHmmss}.html"); }
}
diff --git a/Components/Pages/Permissions.razor b/Components/Pages/Permissions.razor
index 168f8f0..df92e53 100644
--- a/Components/Pages/Permissions.razor
+++ b/Components/Pages/Permissions.razor
@@ -133,7 +133,7 @@
private async Task ExportHtml()
{
- var html = HtmlExport.BuildHtml(_results);
+ var html = HtmlExport.BuildHtml(_results, Session.CurrentBranding);
await WebExport.DownloadHtmlAsync(html, $"permissions_{DateTime.Now:yyyyMMdd_HHmmss}.html");
}
}
diff --git a/Components/Pages/Profiles.razor b/Components/Pages/Profiles.razor
index 2b5070f..3cc4351 100644
--- a/Components/Pages/Profiles.razor
+++ b/Components/Pages/Profiles.razor
@@ -146,6 +146,12 @@
}
+
+
+ Shown top-right on exported reports for this client.
+
+
+
@@ -214,7 +220,7 @@
private void EditProfile(TenantProfile p)
{
_editing = p;
- _form = new TenantProfile { Id = p.Id, Name = p.Name, TenantUrl = p.TenantUrl, TenantId = p.TenantId, ClientId = p.ClientId };
+ _form = new TenantProfile { Id = p.Id, Name = p.Name, TenantUrl = p.TenantUrl, TenantId = p.TenantId, ClientId = p.ClientId, ClientLogo = p.ClientLogo };
_showForm = true;
_formError = _pageError = string.Empty;
}
diff --git a/Components/Pages/Search.razor b/Components/Pages/Search.razor
index e856345..cb8e025 100644
--- a/Components/Pages/Search.razor
+++ b/Components/Pages/Search.razor
@@ -124,5 +124,5 @@
private void Cancel() => _cts?.Cancel();
private async Task ExportCsv() { await WebExport.DownloadCsvAsync(CsvExport.BuildCsv(_results), $"search_{DateTime.Now:yyyyMMdd_HHmmss}.csv"); }
- private async Task ExportHtml() { await WebExport.DownloadHtmlAsync(HtmlExport.BuildHtml(_results), $"search_{DateTime.Now:yyyyMMdd_HHmmss}.html"); }
+ private async Task ExportHtml() { await WebExport.DownloadHtmlAsync(HtmlExport.BuildHtml(_results, Session.CurrentBranding), $"search_{DateTime.Now:yyyyMMdd_HHmmss}.html"); }
}
diff --git a/Components/Pages/Settings.razor b/Components/Pages/Settings.razor
index 26a48b5..ecf4ce6 100644
--- a/Components/Pages/Settings.razor
+++ b/Components/Pages/Settings.razor
@@ -35,11 +35,21 @@
+
+
@if (_saved) { Settings saved.
}
@code {
private string _lang = "en", _theme = "System";
private bool _autoTakeOwnership, _saved;
+ private LogoData? _mspLogo;
protected override void OnInitialized()
{
@@ -47,11 +57,18 @@
_lang = s.Lang;
_theme = s.Theme is "System" or "Light" ? s.Theme : "System";
_autoTakeOwnership = s.AutoTakeOwnership;
+ _mspLogo = s.MspLogo;
+ }
+
+ private async Task OnMspLogoChanged(LogoData? logo)
+ {
+ _mspLogo = logo;
+ await Save();
}
private async Task Save()
{
- Session.UpdateSettings(new AppSettings { Lang = _lang, Theme = _theme, AutoTakeOwnership = _autoTakeOwnership });
+ Session.UpdateSettings(new AppSettings { Lang = _lang, Theme = _theme, AutoTakeOwnership = _autoTakeOwnership, MspLogo = _mspLogo });
SharepointToolbox.Web.Localization.TranslationSource.Instance.SetCulture(_lang);
await JS.InvokeVoidAsync("sptb.setTheme", _theme);
_saved = true;
diff --git a/Components/Pages/Storage.razor b/Components/Pages/Storage.razor
index 61674b1..316f362 100644
--- a/Components/Pages/Storage.razor
+++ b/Components/Pages/Storage.razor
@@ -21,6 +21,13 @@
+