From 5b4b029d1de591de2fb1980093b64d0ebeaf4e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 24 Oct 2023 15:51:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20More=20visible=20funding=20reque?= =?UTF-8?q?st=20in=20wizard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/js/app/viewmodels/firstrun_wizard.js | 10 +++++++--- .../templates/dialogs/wizard/firstrun_end.jinja2 | 13 +++++++++---- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/octoprint/static/js/app/viewmodels/firstrun_wizard.js b/src/octoprint/static/js/app/viewmodels/firstrun_wizard.js index b0a2b52db..be4f7b24e 100644 --- a/src/octoprint/static/js/app/viewmodels/firstrun_wizard.js +++ b/src/octoprint/static/js/app/viewmodels/firstrun_wizard.js @@ -4,12 +4,14 @@ $(function () { self.dontPrintUnattendedAcknowledged = ko.observable(false); self.dontPortForwardAcknowledged = ko.observable(false); + self.fundingRequestAcknowledged = ko.observable(false); self.error = ko.observable(false); self.allAcknowledged = ko.pureComputed(function () { return ( self.dontPrintUnattendedAcknowledged() && - self.dontPortForwardAcknowledged() + self.dontPortForwardAcknowledged() && + self.fundingRequestAcknowledged() ); }); @@ -34,9 +36,11 @@ $(function () { self._showAcknowledgementNeededDialog = function () { self.error(true); showMessageDialog({ - title: gettext("Please acknowledge the safety warnings"), + title: gettext( + "Please acknowledge the safety warnings and call for funding" + ), message: gettext( - "You haven't yet acknowledged all safety warnings. Please do so first." + "You haven't yet acknowledged all safety warnings and the call for funding. Please do so first." ) }); }; diff --git a/src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2 b/src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2 index e7b90fbd2..d7b58944c 100644 --- a/src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2 +++ b/src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2 @@ -42,16 +42,21 @@ -

{{ _('If you enjoy OctoPrint...') }}

+

{{ _('Support OctoPrint\'s ongoing development!') }}

-

{% trans url='https://octoprint.org/support-octoprint/?utm_source=octoprint&utm_medium=first_run_wizard' %} - Please consider supporting OctoPrint's ongoing development, - which can only continue with funding by users like you! You can also find this link in the "About" dialog.
+

{% trans url='https://octoprint.org/support-octoprint/?utm_source=octoprint&utm_medium=first_run_wizard&campaign=funding' %} + Work on OctoPrint is only possible through continued financial support by people like you! + If you enjoy OctoPrint, please click here to learn how to help with its funding - + every bit helps!
Thank you! {% endtrans %}

+