From d719f4def7e646964b72963a64e41fafaed4a442 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 17 Feb 2021 17:30:58 +0530 Subject: [PATCH] use existing translation for subscribe button instead of custom key --- customize.dist/pages.js | 4 ++-- customize.dist/pages/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/customize.dist/pages.js b/customize.dist/pages.js index 436c3be93..85141f975 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -181,11 +181,11 @@ define([ Pages.subscribeButton = function (onClick) { var _link = h('a', { - href: "/accounts/", + href: AppConfig.upgradeURL || "/accounts/", }); var subscribe = h('button', [ - Msg.subscribe_button + Msg.features_f_subscribe, ]); $(subscribe).click(function () { diff --git a/customize.dist/pages/index.js b/customize.dist/pages/index.js index e50bb22d7..c03c0c283 100644 --- a/customize.dist/pages/index.js +++ b/customize.dist/pages/index.js @@ -74,7 +74,7 @@ define([ var subscribeButton; /* Display a subscribe button if they are enabled and the button's translation key exists */ - if (Config.allowSubscriptions && Msg.subscribe_button) { + if (Config.allowSubscriptions) { subscribeButton = Pages.subscribeButton(function () { Feedback.send('HOME_SUBSCRIBE_CRYPTPAD'); });