Skip to content

Commit

Permalink
CLDR-17620 hide the 'notifications' menu item in production (#3755)
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 authored May 29, 2024
1 parent 8f99ed9 commit d4c4a45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tools/cldr-apps/js/src/esm/cldrText.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down Expand Up @@ -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:
Expand Down
8 changes: 6 additions & 2 deletions tools/cldr-apps/js/src/views/MainMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@
</li>
</ul>
</li>
<li>
<li v-if="isUnofficial">
<ul>
<li><a href="#mail///">Notifications (SMOKETEST ONLY)</a></li>
<li>
<a href="#mail///">Simulate Email Notifications (SMOKETEST ONLY)</a>
</li>
</ul>
</li>
<li v-if="isAdmin">
Expand Down Expand Up @@ -133,6 +135,7 @@ export default {
canUseVettingSummary: false,
isAdmin: false,
isTC: false,
isUnofficial: false,
loggedIn: false,
org: null,
recentActivityUrl: null,
Expand All @@ -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();
Expand Down

0 comments on commit d4c4a45

Please sign in to comment.