From 462404437dd65e4de1b8e786cdf98a5dfb0d3e2b Mon Sep 17 00:00:00 2001 From: Jan Dvorak Date: Wed, 24 Jan 2024 18:12:46 +0100 Subject: [PATCH] Update X/Twitter setup instructions and button text to: X/Twitter --- .../login_buttons_single.js | 3 ++ .../twitter-config-ui/twitter_configure.html | 29 +++++++++---------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/packages/accounts-ui-unstyled/login_buttons_single.js b/packages/accounts-ui-unstyled/login_buttons_single.js index 8a2fdeb3da..a850e409d0 100644 --- a/packages/accounts-ui-unstyled/login_buttons_single.js +++ b/packages/accounts-ui-unstyled/login_buttons_single.js @@ -78,6 +78,9 @@ Template._loginButtonsLoggedOutSingleLoginButton.helpers({ return !!ServiceConfiguration.configurations.findOne({service: this.name}); }, capitalizedName: function () { + if (this.name === 'twitter') { + return 'X/Twitter'; + } if (this.name === 'github') // XXX we should allow service packages to set their capitalized name return 'GitHub'; diff --git a/packages/twitter-config-ui/twitter_configure.html b/packages/twitter-config-ui/twitter_configure.html index eed56c1959..85b2f3c2d1 100644 --- a/packages/twitter-config-ui/twitter_configure.html +++ b/packages/twitter-config-ui/twitter_configure.html @@ -1,26 +1,25 @@