Fix XXX in features.js

pull/1/head
yflory 4 years ago
parent 03e690b0bc
commit 41c43b9f72

@ -10,7 +10,7 @@ define([
var origin = encodeURIComponent(window.location.hostname); var origin = encodeURIComponent(window.location.hostname);
var accounts = { var accounts = {
donateURL: AppConfig.donateURL || "https://opencollective.com/cryptpad/", donateURL: AppConfig.donateURL || "https://opencollective.com/cryptpad/",
upgradeURL: AppConfig.upgradeURL || 'https://accounts.cryptpad.fr/#/?on=' + origin, // XXX upgradeURL: AppConfig.upgradeURL
}; };
return function () { return function () {
@ -121,14 +121,14 @@ define([
h('ul.list-group.list-group-flush', ['reg', 'storage2', 'support', 'supporter'].map(groupItem)), h('ul.list-group.list-group-flush', ['reg', 'storage2', 'support', 'supporter'].map(groupItem)),
h('div.card-body',[ h('div.card-body',[
h('div.cp-features-register#cp-features-subscribe', [ h('div.cp-features-register#cp-features-subscribe', [
premiumButton // XXX premiumButton
]), ]),
LocalStore.isLoggedIn() ? undefined : h('div.cp-note', Msg.features_f_subscribe_note) LocalStore.isLoggedIn() ? undefined : h('div.cp-note', Msg.features_f_subscribe_note)
]), ]),
]), ]),
]); ]);
var availableFeatures = var availableFeatures =
Config.allowSubscriptions ? (Config.allowSubscriptions && accounts.upgradeURL) ?
[anonymousFeatures, registeredFeatures, premiumFeatures] : [anonymousFeatures, registeredFeatures, premiumFeatures] :
[anonymousFeatures, registeredFeatures]; [anonymousFeatures, registeredFeatures];

Loading…
Cancel
Save