From a48355f8bc2ef37c01a23ee2a6baf9689505d576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Thu, 15 Apr 2021 09:29:53 +0200 Subject: [PATCH] Implement admin danations info show checkbox --- webapp/locales/de.json | 1 + webapp/locales/en.json | 1 + webapp/pages/admin/donations.vue | 48 ++++++++++++++++++++++++++++++-- 3 files changed, 48 insertions(+), 2 deletions(-) diff --git a/webapp/locales/de.json b/webapp/locales/de.json index 73d2feda5..31e361721 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -30,6 +30,7 @@ "goal": "Monatlich benötigte Spenden", "name": "Spendeninfo", "progress": "Bereits gesammelte Spenden", + "showDonationsCheckboxLabel": "Spendenfortschritt anzeigen", "successfulUpdate": "Spenden-Info erfolgreich aktualisiert!" }, "hashtags": { diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 476d1db65..f75556e80 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -30,6 +30,7 @@ "goal": "Monthly donations needed", "name": "Donations info", "progress": "Donations collected so far", + "showDonationsCheckboxLabel": "Show donations progress bar", "successfulUpdate": "Donations info updated successfully!" }, "hashtags": { diff --git a/webapp/pages/admin/donations.vue b/webapp/pages/admin/donations.vue index f99a26c0c..779513781 100644 --- a/webapp/pages/admin/donations.vue +++ b/webapp/pages/admin/donations.vue @@ -2,14 +2,39 @@

{{ $t('admin.donations.name') }}

- + + + + + - + {{ $t('actions.save') }} @@ -26,6 +51,10 @@ export default { goal: null, progress: null, }, + // TODO: Our styleguide does not support checkmarks. + // Integrate showDonations into `this.formData` once we + // have checkmarks available. + showDonations: null, } }, methods: { @@ -62,3 +91,18 @@ export default { }, } + +