From d530059e7e464e81aef57c83fb22a74e59a96fd4 Mon Sep 17 00:00:00 2001 From: rockstardev Date: Sun, 13 Sep 2020 17:32:02 -0500 Subject: [PATCH] Tweaking Shopify integrations page for better display --- BTCPayServer/Views/Stores/Integrations.cshtml | 37 +++++++++---------- BTCPayServer/Views/Stores/StoreNavPages.cs | 2 +- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/BTCPayServer/Views/Stores/Integrations.cshtml b/BTCPayServer/Views/Stores/Integrations.cshtml index 071a9cdf8..3f33c658b 100644 --- a/BTCPayServer/Views/Stores/Integrations.cshtml +++ b/BTCPayServer/Views/Stores/Integrations.cshtml @@ -3,6 +3,10 @@ @{ Layout = "../Shared/_NavLayout.cshtml"; ViewData.SetActivePageAndTitle(StoreNavPages.Integrations, "Integrations"); + + + var shopify = Model.Shopify; + var shopifyCredsSet = shopify?.CredentialsValid == true; } @@ -24,58 +28,53 @@
- +
- +
- +
- +
- @if (Model.Shopify?.CredentialsValid == false) + @if (!shopifyCredsSet) { } - else + else if (shopify?.IntegratedAt.HasValue == true) { - +

+ Orders on @shopify.ShopName.myshopify.com will be marked as paid on successful invoice payment. + Started: @shopify.IntegratedAt.Value.ToBrowserDate() +

+

} - @if (Model.Shopify?.CredentialsValid == true) + @if (shopifyCredsSet) { - var shopify = Model.Shopify; -

-

Shopify Operations

+
Shopify Operations
if (!shopify.IntegratedAt.HasValue) { } - else - { -

- Orders on @shopify.ShopName.myshopify.com will be marked as paid on successful invoice payment. - Started: @shopify.IntegratedAt.Value.ToBrowserDate() -

-

- } + } diff --git a/BTCPayServer/Views/Stores/StoreNavPages.cs b/BTCPayServer/Views/Stores/StoreNavPages.cs index ab8060240..13f1873f8 100644 --- a/BTCPayServer/Views/Stores/StoreNavPages.cs +++ b/BTCPayServer/Views/Stores/StoreNavPages.cs @@ -2,6 +2,6 @@ namespace BTCPayServer.Views.Stores { public enum StoreNavPages { - ActivePage, Index, Rates, Checkout, Tokens, Users, PayButton + ActivePage, Index, Rates, Checkout, Tokens, Users, PayButton, Integrations } }