From 0abf67bd2c42fb9527735f1c44d5d37957c37b94 Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Thu, 22 Feb 2024 17:32:19 +0100 Subject: [PATCH] Added plain text to article state emails for reviewers and authors --- Wave/Components/Pages/ArticleView.razor | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Wave/Components/Pages/ArticleView.razor b/Wave/Components/Pages/ArticleView.razor index e882a54..10e647a 100644 --- a/Wave/Components/Pages/ArticleView.razor +++ b/Wave/Components/Pages/ArticleView.razor @@ -196,7 +196,8 @@ reviewer.Name, "Article submitted for Review", "Article submitted for Review", - $"

The Article '{Article.Title}' by {Article.Author.Name} has been submitted for review.

"); + $"

The Article '{Article.Title}' by {Article.Author.Name} has been submitted for review.

", + $"The Article '{Article.Title}' by {Article.Author.Name} has been submitted for review."); // TODO check if they enabled email notifications (property currently not implemented) await EmailService.SendEmailAsync(email); } @@ -243,7 +244,9 @@ "Article has been approved", "Your Article is going to be published", $"

The Article '{Article.Title}' has been checked and approved by a reviewer.

" + - $"

It is currently scheduled for {Article.PublishDate.ToString("f", CultureInfo.GetCultureInfo("en-US"))}.

"); + $"

It is currently scheduled for {Article.PublishDate.ToString("f", CultureInfo.GetCultureInfo("en-US"))}.

", + $"The Article '{Article.Title}' has been checked and approved by a reviewer. " + + $"It is currently scheduled for {Article.PublishDate.ToString("f", CultureInfo.GetCultureInfo("en-US"))}."); // TODO check if they enabled email notifications (property currently not implemented) await EmailService.SendEmailAsync(email);