use existing translation for subscribe button instead of custom key

pull/1/head
ansuz 4 years ago
parent fb8704ae1f
commit d719f4def7

@ -181,11 +181,11 @@ define([
Pages.subscribeButton = function (onClick) { Pages.subscribeButton = function (onClick) {
var _link = h('a', { var _link = h('a', {
href: "/accounts/", href: AppConfig.upgradeURL || "/accounts/",
}); });
var subscribe = h('button', [ var subscribe = h('button', [
Msg.subscribe_button Msg.features_f_subscribe,
]); ]);
$(subscribe).click(function () { $(subscribe).click(function () {

@ -74,7 +74,7 @@ define([
var subscribeButton; var subscribeButton;
/* Display a subscribe button if they are enabled and the button's translation key exists */ /* 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 () { subscribeButton = Pages.subscribeButton(function () {
Feedback.send('HOME_SUBSCRIBE_CRYPTPAD'); Feedback.send('HOME_SUBSCRIBE_CRYPTPAD');
}); });

Loading…
Cancel
Save