Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDR-17620 hide the 'notifications' menu item in production #3755

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading