From 426af7f8cc365b4e0f0be495a95681517ec34117 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Mon, 27 May 2024 17:38:22 -0500 Subject: [PATCH] CLDR-17620 hide the 'notifications' menu item in production - this is a testing facility. Smoketest, etc don't acutally send mail, so there is a test facility. But it should not be visible in production. - rename notifications to 'sumulate email notifications'. - clean up ui slightly --- tools/cldr-apps/js/src/esm/cldrText.mjs | 4 +++- tools/cldr-apps/js/src/views/MainMenu.vue | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/cldr-apps/js/src/esm/cldrText.mjs b/tools/cldr-apps/js/src/esm/cldrText.mjs index 9e8faa7f4e3..89e775074f5 100644 --- a/tools/cldr-apps/js/src/esm/cldrText.mjs +++ b/tools/cldr-apps/js/src/esm/cldrText.mjs @@ -492,7 +492,7 @@ const strings = { special_locales: "Locale List", special_lock_account: "Lock (Disable) My Account", special_lookup: "Look up a code or xpath", - special_mail: "Notifications (SMOKETEST ONLY)", + special_mail: "Simulate Email Notifications (SMOKETEST ONLY)", special_menu: "☰", special_oldvotes: "Import Old Votes", special_upload: "Upload (Bulk Import)", @@ -531,6 +531,8 @@ const strings = { lock_account_success: "The account has been locked successfully. Thank you for using the Survey Tool. If you have difficulty still, contact the person who set up your account.", + mail_noMail: "No simulated notification emails.", + notification_category_abstained: "You have abstained, or not yet voted for any value.", notification_category_changed: diff --git a/tools/cldr-apps/js/src/views/MainMenu.vue b/tools/cldr-apps/js/src/views/MainMenu.vue index 62411f325b1..4eac410cec1 100644 --- a/tools/cldr-apps/js/src/views/MainMenu.vue +++ b/tools/cldr-apps/js/src/views/MainMenu.vue @@ -84,9 +84,11 @@ -
  • +
  • @@ -133,6 +135,7 @@ export default { canUseVettingSummary: false, isAdmin: false, isTC: false, + isUnofficial: false, loggedIn: false, org: null, recentActivityUrl: null, @@ -156,6 +159,7 @@ export default { // this.canSeeStatistics will be false until there is a new implementation this.canUseVettingSummary = perm && perm.userCanUseVettingSummary; this.isAdmin = perm && perm.userIsAdmin; + this.isUnofficial = cldrStatus.getIsUnofficial(); this.isTC = perm && perm.userIsTC; const user = cldrStatus.getSurveyUser();