Implement review changes regarding UI

This commit is contained in:
DianaXWiki 2026-04-01 17:58:09 +03:00
parent 233b930dd0
commit 87972e95c6
4 changed files with 9 additions and 8 deletions

View File

@ -135,7 +135,10 @@ define(req, function(AppConfig, Default, Language) {
};
/// XXX
Messages.crowdfunding_subscribe = "Subscribe";
// To be edited for the Spring Release
// Messages.dontShowAgain = "Don't show again";
// Messages.crowdfunding_popup_text = "<h3>We need your help!</h3>To ensure that CryptPad is actively developed, consider supporting the project via the OpenCollective page, where you can see our <b>Roadmap</b> and <b>Funding goals</b>."
// Messages.crowdfunding_popup_text2 = "Alternatively, we have subscription plans available on <a href='https://cryptpad.fr'>CryptPad.fr</a>."
return Messages;
});

View File

@ -251,8 +251,8 @@ define([
// Other
"maintenance": "construction",
"release-notes": "notepad-text",
"subscribe": "heart-handshake",
"donate": "hand-heart",
"snooze": "timer",
};
Icons.add = (newIcons) => {

View File

@ -3406,6 +3406,7 @@ define([
{
name: Messages.crowdfunding_popup_no,
className: 'cancel',
iconClass: 'snooze',
onClick: function () {
Feedback.send('CROWDFUNDING_NO');
}
@ -3413,7 +3414,7 @@ define([
];
if (Config.accounts_api && priv.accountName) {
buttons.push({
name: Messages.crowdfunding_subscribe,
name: Messages.features_f_subscribe,
className: 'primary',
iconClass: 'subscribe',
onClick: function () {

View File

@ -1063,11 +1063,8 @@ define([
document.title = title;
});
funcs.isPadStored(function (err, val) {
if (err || !val) { return; }
ctx.sframeChan.query('Q_INCREMENT_CROWDFUNDING_ACTION', null, function () {
UIElements.displayCrowdfunding(funcs);
});
ctx.sframeChan.query('Q_INCREMENT_CROWDFUNDING_ACTION', null, function () {
UIElements.displayCrowdfunding(funcs);
});
ctx.sframeChan.ready();