From a3deaf73c3dae7d1a59fa05633965fe799b6face Mon Sep 17 00:00:00 2001 From: Fornax Date: Tue, 3 May 2022 15:36:14 +0200 Subject: [PATCH] Add button for linking Patreon subscription --- res/template/fragments/page_wrap.html | 3 -- svelte/src/user_home/Home.svelte | 39 ++++++++++++++++++++++++ svelte/src/user_home/Subscription.svelte | 5 ++- 3 files changed, 43 insertions(+), 4 deletions(-) diff --git a/res/template/fragments/page_wrap.html b/res/template/fragments/page_wrap.html index 74d9aea..a21726d 100644 --- a/res/template/fragments/page_wrap.html +++ b/res/template/fragments/page_wrap.html @@ -24,9 +24,6 @@ API Acknowledgements Server Status - {{if eq .User.Subscription.ID ""}} - Shopping discounts - {{end}}
+ {#if patreon_response !== ""} + {#if patreon_response === "error"} +
+ An error occurred while linking Patreon subscription. Please try + again later. +
+ {:else if patreon_response === "pledge_not_found"} +
+

+ We were not able to find your payment on Patreon. Please + wait until the payment is confirmed and try again. You can + see the status of your payment on Patreon itself. +

+

+ If your payment is complete and your account is still not + upgraded please contact me at support@pixeldrain.com, or + send me a message on Patreon. +

+

+ {:else if patreon_response === "success"} +
+ Success! Your Patreon pledge has been linked to your pixeldrain + account. You are now able to use Pro features. +
+ {/if} +
+ {/if} +

Account information