From fa522a85d6215d3f6dd9af05f18dd75fbfb5e0c4 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Thu, 25 Feb 2021 15:40:34 +0100 Subject: [PATCH] Added new icon for donations ref #79 --- src/components/dashboard/Dashboard.svelte | 17 +++++++++++++++++ .../donations/AddDonationModal.svelte | 2 +- src/components/donations/DonationDetail.svelte | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/components/dashboard/Dashboard.svelte b/src/components/dashboard/Dashboard.svelte index a007fe91..c4d4cb1b 100644 --- a/src/components/dashboard/Dashboard.svelte +++ b/src/components/dashboard/Dashboard.svelte @@ -121,6 +121,23 @@ {$_('donors')} {/if} +{#if store.state.jwtinfo.userdetails.permissions.includes('DONATION:GET')} + + + + Donations + +{/if} {#if store.state.jwtinfo.userdetails.permissions.includes('TRACK:GET')} + d="M14 2a8 8 0 013.3 15.3A8 8 0 116.7 6.7 8 8 0 0114 2zm-3 7H9v1a2.5 2.5 0 00-.16 5h2.25a.5.5 0 010 1H7v2h2v1h2v-1a2.5 2.5 0 00.16-5H8.91a.5.5 0 010-1H13v-2h-2V9zm3-5a5.99 5.99 0 00-4.48 2.01 8 8 0 018.47 8.47A6 6 0 0014 4z" />

diff --git a/src/components/donations/DonationDetail.svelte b/src/components/donations/DonationDetail.svelte index c96bf808..a946415a 100644 --- a/src/components/donations/DonationDetail.svelte +++ b/src/components/donations/DonationDetail.svelte @@ -119,7 +119,7 @@ width="24" height="24"> + d="M14 2a8 8 0 013.3 15.3A8 8 0 116.7 6.7 8 8 0 0114 2zm-3 7H9v1a2.5 2.5 0 00-.16 5h2.25a.5.5 0 010 1H7v2h2v1h2v-1a2.5 2.5 0 00.16-5H8.91a.5.5 0 010-1H13v-2h-2V9zm3-5a5.99 5.99 0 00-4.48 2.01 8 8 0 018.47 8.47A6 6 0 0014 4z" />
  • Donations