From 8586e45280779cfe15707aa23f3ab39a797cd39c Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Sun, 9 Sep 2018 20:21:17 -0500 Subject: [PATCH] add mirror view and subscribe buttons ref #467 --- .../ClientApp/components/ListDetails.tsx | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx index 81530194b..b86f2e36d 100644 --- a/src/FilterLists.Web/ClientApp/components/ListDetails.tsx +++ b/src/FilterLists.Web/ClientApp/components/ListDetails.tsx @@ -76,7 +76,11 @@ function ListInfo(props: any) { function ListUrls(props: any) { return
+ + + + @@ -199,6 +203,30 @@ function SubscribeUrl(props: any) { } }; +function SubscribeUrlMirror(props: any) { + return props.url + ? props.url.indexOf("https://") === -1 + ? SubscribeUrlNotSecure() + : SubscribeUrlSecondary() + : null; + + function SubscribeUrlSecondary() { + return + Subscribe + ; + } + + function SubscribeUrlNotSecure() { + return + Subscribe + ; + } +}; + function ViewUrl(props: any) { return props.url.indexOf("https://") === -1 ? ViewUrlNotSecure() @@ -231,6 +259,30 @@ function ViewUrl(props: any) { } }; +function ViewUrlMirror(props: any) { + return props.url + ? props.url.indexOf("https://") === -1 + ? ViewUrlNotSecure() + : viewUrlSecondary() + : null; + + function viewUrlSecondary() { + return + View + ; + } + + function ViewUrlNotSecure() { + return + View + ; + } +}; + function HomeUrl(props: any) { return props.url ?