From bc4a78382cafa376a86be88dfc027664171d101f Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Mon, 29 Apr 2024 12:43:43 +0200 Subject: [PATCH] fixed missing JS functions in Article Editor --- Wave/Components/AdvancedMarkdownEditor.razor | 46 ----------------- Wave/Components/App.razor | 50 ++++++++++++++++++- .../Pages/Partials/ArticleEditorPartial.razor | 2 +- 3 files changed, 49 insertions(+), 49 deletions(-) diff --git a/Wave/Components/AdvancedMarkdownEditor.razor b/Wave/Components/AdvancedMarkdownEditor.razor index 43e7bc6..9517742 100644 --- a/Wave/Components/AdvancedMarkdownEditor.razor +++ b/Wave/Components/AdvancedMarkdownEditor.razor @@ -109,52 +109,6 @@ - @code { diff --git a/Wave/Components/App.razor b/Wave/Components/App.razor index 317f778..87d000d 100644 --- a/Wave/Components/App.razor +++ b/Wave/Components/App.razor @@ -44,8 +44,54 @@ - - + + + diff --git a/Wave/Components/Pages/Partials/ArticleEditorPartial.razor b/Wave/Components/Pages/Partials/ArticleEditorPartial.razor index 4fa99f0..b62f07b 100644 --- a/Wave/Components/Pages/Partials/ArticleEditorPartial.razor +++ b/Wave/Components/Pages/Partials/ArticleEditorPartial.razor @@ -280,7 +280,7 @@ } // published articles may only be edited my admins or moderators - if (article.Status is ArticleStatus.Published && roles.Any(r => r is "Admin" or "Reviewer")) { + if (article.Status is ArticleStatus.Published && roles.Any(r => r is "Admin" or "Moderator")) { article.Reviewer = me; // TODO replace with editor or something? return; }