From e73ae961bad1715da0b0e0757d0ff9cc6ea57587 Mon Sep 17 00:00:00 2001 From: RobertBeekman Date: Tue, 16 Jan 2024 09:33:29 +0100 Subject: [PATCH] Layouts - Remove feature flag --- src/Artemis.UI/Routing/Routes.cs | 2 -- src/Artemis.UI/Screens/Sidebar/SidebarViewModel.cs | 2 -- .../Screens/Workshop/Entries/EntriesViewModel.cs | 2 -- .../Screens/Workshop/Home/WorkshopHomeView.axaml | 2 +- .../Screens/Workshop/Home/WorkshopHomeViewModel.cs | 6 ------ .../SubmissionWizard/Steps/EntryTypeStepView.axaml | 3 +-- .../SubmissionWizard/Steps/EntryTypeStepViewModel.cs | 6 ------ src/Artemis.WebClient.Workshop/WorkshopConstants.cs | 8 ++++---- 8 files changed, 6 insertions(+), 25 deletions(-) diff --git a/src/Artemis.UI/Routing/Routes.cs b/src/Artemis.UI/Routing/Routes.cs index 9516439a9..e129b384c 100644 --- a/src/Artemis.UI/Routing/Routes.cs +++ b/src/Artemis.UI/Routing/Routes.cs @@ -34,10 +34,8 @@ public static class Routes { new RouteRegistration("profiles/{page:int}"), new RouteRegistration("profiles/details/{entryId:long}"), -#if DEBUG new RouteRegistration("layouts/{page:int}"), new RouteRegistration("layouts/details/{entryId:long}"), -#endif } }, new RouteRegistration("library") diff --git a/src/Artemis.UI/Screens/Sidebar/SidebarViewModel.cs b/src/Artemis.UI/Screens/Sidebar/SidebarViewModel.cs index d804fa2c4..ae9de0d2c 100644 --- a/src/Artemis.UI/Screens/Sidebar/SidebarViewModel.cs +++ b/src/Artemis.UI/Screens/Sidebar/SidebarViewModel.cs @@ -42,9 +42,7 @@ public SidebarViewModel(IRouter router, IProfileService profileService, IWindowS new(MaterialIconKind.TestTube, "Workshop", "workshop", null, new ObservableCollection { new(MaterialIconKind.FolderVideo, "Profiles", "workshop/entries/profiles/1", "workshop/entries/profiles"), -#if DEBUG new(MaterialIconKind.KeyboardVariant, "Layouts", "workshop/entries/layouts/1", "workshop/entries/layouts"), -#endif new(MaterialIconKind.Bookshelf, "Library", "workshop/library"), }), diff --git a/src/Artemis.UI/Screens/Workshop/Entries/EntriesViewModel.cs b/src/Artemis.UI/Screens/Workshop/Entries/EntriesViewModel.cs index bf27ec55c..4ee34fee4 100644 --- a/src/Artemis.UI/Screens/Workshop/Entries/EntriesViewModel.cs +++ b/src/Artemis.UI/Screens/Workshop/Entries/EntriesViewModel.cs @@ -25,9 +25,7 @@ public EntriesViewModel(IRouter router) Tabs = new ObservableCollection { new("Profiles", "workshop/entries/profiles/1", "workshop/entries/profiles"), -#if DEBUG new("Layouts", "workshop/entries/layouts/1", "workshop/entries/layouts") -#endif }; this.WhenActivated(d => diff --git a/src/Artemis.UI/Screens/Workshop/Home/WorkshopHomeView.axaml b/src/Artemis.UI/Screens/Workshop/Home/WorkshopHomeView.axaml index c97d51ee0..433f87c50 100644 --- a/src/Artemis.UI/Screens/Workshop/Home/WorkshopHomeView.axaml +++ b/src/Artemis.UI/Screens/Workshop/Home/WorkshopHomeView.axaml @@ -49,7 +49,7 @@ -