From ffa1f6f7decc98690013ac9cc0158a5dc581fea7 Mon Sep 17 00:00:00 2001 From: smunky <105208736+devkennyy@users.noreply.github.com> Date: Mon, 27 Jun 2022 20:00:04 +1000 Subject: [PATCH] remove fullstops from alerts (#3245) devkennyy * test * Revert "test" This reverts commit c1d05d50b194b0efb2d6be15ea0bc8ba5defb446. * remove fullstops * remove fullstops * more punctuation --- frontend/src/ts/popups/custom-text-popup.ts | 4 ++-- frontend/src/ts/popups/quote-report-popup.ts | 8 ++++---- frontend/src/ts/popups/simple-popups.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/ts/popups/custom-text-popup.ts b/frontend/src/ts/popups/custom-text-popup.ts index e0b6add97..5ebba53a5 100644 --- a/frontend/src/ts/popups/custom-text-popup.ts +++ b/frontend/src/ts/popups/custom-text-popup.ts @@ -157,7 +157,7 @@ function apply(): void { !CustomText.isWordRandom ) { Notifications.add( - "You need to specify word count or time in seconds to start a random custom test.", + "You need to specify word count or time in seconds to start a random custom test", 0, 5 ); @@ -170,7 +170,7 @@ function apply(): void { CustomText.isWordRandom ) { Notifications.add( - "You need to pick between word count or time in seconds to start a random custom test.", + "You need to pick between word count or time in seconds to start a random custom test", 0, 5 ); diff --git a/frontend/src/ts/popups/quote-report-popup.ts b/frontend/src/ts/popups/quote-report-popup.ts index d25cdfe8f..c357787db 100644 --- a/frontend/src/ts/popups/quote-report-popup.ts +++ b/frontend/src/ts/popups/quote-report-popup.ts @@ -89,7 +89,7 @@ export async function hide(): Promise { async function submitReport(): Promise { const captchaResponse = CaptchaController.getResponse("quoteReportPopup"); if (!captchaResponse) { - return Notifications.add("Please complete the captcha."); + return Notifications.add("Please complete the captcha"); } const quoteId = state.quoteToReport?.id.toString(); @@ -99,17 +99,17 @@ async function submitReport(): Promise { const captcha = captchaResponse as string; if (!quoteId) { - return Notifications.add("Please select a quote."); + return Notifications.add("Please select a quote"); } if (!reason) { - return Notifications.add("Please select a valid report reason."); + return Notifications.add("Please select a valid report reason"); } const characterDifference = comment.length - 250; if (characterDifference > 0) { return Notifications.add( - `Report comment is ${characterDifference} character(s) too long.` + `Report comment is ${characterDifference} character(s) too long` ); } diff --git a/frontend/src/ts/popups/simple-popups.ts b/frontend/src/ts/popups/simple-popups.ts index f836d0db7..492000ef4 100644 --- a/frontend/src/ts/popups/simple-popups.ts +++ b/frontend/src/ts/popups/simple-popups.ts @@ -739,7 +739,7 @@ list["applyCustomFont"] = new SimplePopup( "text", "Custom font", [{ placeholder: "Font name", initVal: "" }], - "Make sure you have the font installed on your computer before applying.", + "Make sure you have the font installed on your computer before applying", "Apply", (_thisPopup, fontName: string) => { if (fontName === "") return; @@ -1071,7 +1071,7 @@ list["updateCustomTheme"] = new SimplePopup( (t) => t._id === _thisPopup.parameters[0] ); if (customTheme === undefined) { - Notifications.add("Custom theme does not exist!", -1); + Notifications.add("Custom theme does not exist", -1); return; }