From 742496b13dfb9099d4b4ed1b9abef961878fda29 Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 2 Sep 2023 09:43:42 +0200 Subject: [PATCH] Workshop - UI tweaks --- .../Screens/Workshop/Entries/EntryListItemView.axaml | 2 +- .../Screens/Workshop/Profile/ProfileDetailsView.axaml | 3 +-- .../SubmissionWizard/Steps/SpecificationsStepView.axaml | 3 +-- src/Artemis.WebClient.Workshop/Services/IWorkshopService.cs | 5 ++--- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/Artemis.UI/Screens/Workshop/Entries/EntryListItemView.axaml b/src/Artemis.UI/Screens/Workshop/Entries/EntryListItemView.axaml index 6d761081f..2831515f6 100644 --- a/src/Artemis.UI/Screens/Workshop/Entries/EntryListItemView.axaml +++ b/src/Artemis.UI/Screens/Workshop/Entries/EntryListItemView.axaml @@ -64,7 +64,7 @@ - + diff --git a/src/Artemis.UI/Screens/Workshop/Profile/ProfileDetailsView.axaml b/src/Artemis.UI/Screens/Workshop/Profile/ProfileDetailsView.axaml index f41c65768..0189b487c 100644 --- a/src/Artemis.UI/Screens/Workshop/Profile/ProfileDetailsView.axaml +++ b/src/Artemis.UI/Screens/Workshop/Profile/ProfileDetailsView.axaml @@ -85,8 +85,7 @@ Latest release - diff --git a/src/Artemis.WebClient.Workshop/Services/IWorkshopService.cs b/src/Artemis.WebClient.Workshop/Services/IWorkshopService.cs index 6b18e7d12..f859a4f2c 100644 --- a/src/Artemis.WebClient.Workshop/Services/IWorkshopService.cs +++ b/src/Artemis.WebClient.Workshop/Services/IWorkshopService.cs @@ -55,13 +55,12 @@ public class WorkshopService : IWorkshopService return new IWorkshopService.WorkshopStatus(false, e.Message); } } - - /// + /// public async Task ValidateWorkshopStatus(CancellationToken cancellationToken) { IWorkshopService.WorkshopStatus status = await GetWorkshopStatus(cancellationToken); - if (!status.IsReachable) + if (!status.IsReachable && !cancellationToken.IsCancellationRequested) await _router.Navigate($"workshop/offline/{status.Message}"); return status.IsReachable; }