mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-19 15:05:40 +02:00
donation: update campaign dates
Change-Id: Idc8b568234270f897936e60453e22a66d6d8624d
This commit is contained in:
parent
b7c3f3b553
commit
dc7c366afa
5 changed files with 8 additions and 8 deletions
|
@ -99,9 +99,9 @@ extern const QString defaultDownloadPath;
|
|||
X(ShowMardownOption, false) \
|
||||
X(ChatViewEnterIsNewLine, false) \
|
||||
X(ShowSendOption, false) \
|
||||
X(DonationVisibleDate, "2023-11-01 05:00") \
|
||||
X(Donation2023VisibleDate, "2023-11-27 05:00") \
|
||||
X(IsDonationVisible, true) \
|
||||
X(DonationEndDate, "2024-01-01 00:00") \
|
||||
X(Donation2023EndDate, "2024-01-31 00:00") \
|
||||
X(EnablePtt, false) \
|
||||
X(pttKey, 36)
|
||||
#endif
|
||||
|
|
|
@ -75,8 +75,8 @@ Item {
|
|||
// The banner is visible if the current date is after the date set in the settings and before the end date
|
||||
// And if the donation toggle is checked
|
||||
var isDonationVisible = UtilsAdapter.getAppValue(Settings.Key.IsDonationVisible);
|
||||
var endDonationDate = new Date(Date.parse(UtilsAdapter.getAppValue(Settings.Key.DonationEndDate)));
|
||||
var donationVisibleDate = new Date(Date.parse(UtilsAdapter.getAppValue(Settings.Key.DonationVisibleDate)));
|
||||
return new Date() < endDonationDate && new Date() > donationVisibleDate && isDonationVisible && false;
|
||||
var endDonationDate = new Date(Date.parse(UtilsAdapter.getAppValue(Settings.Key.Donation2023EndDate)));
|
||||
var donationVisibleDate = new Date(Date.parse(UtilsAdapter.getAppValue(Settings.Key.Donation2023VisibleDate)));
|
||||
return new Date() < endDonationDate && new Date() > donationVisibleDate && isDonationVisible;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -853,7 +853,7 @@ Item {
|
|||
property string zoomLevel: qsTr("Text zoom level")
|
||||
|
||||
//Donation campaign
|
||||
property string donationTipBoxText: qsTr("Free and private sharing. <a href=\"https://jami.net/donate/\">Donate</a> to expand it.")
|
||||
property string donationTipBoxText: qsTr("Free and private sharing. <a href=\"https://jami.net/whydonate/\">Donate</a> to expand it.")
|
||||
property string donation: qsTr("Donate")
|
||||
property string donationText: qsTr("If you enjoy using Jami and believe in our mission, would you make a donation?")
|
||||
property string notNow: qsTr("Not now")
|
||||
|
|
|
@ -681,7 +681,7 @@ Item {
|
|||
// Donation campaign
|
||||
property color donationButtonTextColor: "#005699"
|
||||
property color donationBackgroundColor: "#D5E4EF"
|
||||
property string donationUrl: "https://jami.net/donate/"
|
||||
property string donationUrl: "https://jami.net/whydonate/"
|
||||
|
||||
//Connection monitoring
|
||||
property color connectionMonitoringTableColor1: darkTheme ? "#4D4D4D" : "#f0efef"
|
||||
|
|
|
@ -77,7 +77,7 @@ TipsModel::reset()
|
|||
|
||||
#ifndef APPSTORE
|
||||
QDate date = QDate::currentDate();
|
||||
if (date >= QDate::fromString("2023-11-01", "yyyy-MM-dd") && false) {
|
||||
if (date >= QDate::fromString("2023-11-27", "yyyy-MM-dd")) {
|
||||
tips_.append({{"id", "14"}, {"title", tr("Donate")}, {"desc", ""}, {"type", "donation"}});
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue