diff --git a/src/FilterLists.Web.V2/src/shared/buttons/subscribe/SubscribeButton.tsx b/src/FilterLists.Web.V2/src/shared/buttons/subscribe/SubscribeButton.tsx index a1579964c..43d7b37b2 100644 --- a/src/FilterLists.Web.V2/src/shared/buttons/subscribe/SubscribeButton.tsx +++ b/src/FilterLists.Web.V2/src/shared/buttons/subscribe/SubscribeButton.tsx @@ -17,16 +17,22 @@ export const SubscribeButton = (props: Props): JSX.Element => (props.viewUrlMirrors && props.viewUrlMirrors.length) ? :
- +
; const ButtonDropdown = (props: Props): JSX.Element => { var buttonProps = buildButtonProps(props.name, props.viewUrl); - return }> Subscribe ; @@ -41,13 +47,18 @@ const DropdownOverlay = (props: DropdownOverlayProps) => {props.viewUrlMirrors.map((viewUrlMirror: string, i: number) => - + )} ; -const buildButtonProps = (name: string, viewUrl: string): ButtonProps => { +const buildButtonProps = (name: string, viewUrl: string): [ButtonProps, boolean] => { let type: ButtonType = "primary"; + let disabled: boolean = false; const hrefLocation = `${encodeURIComponent(viewUrl)}`; const hrefTitle = `${encodeURIComponent(name)}`; @@ -68,8 +79,9 @@ const buildButtonProps = (name: string, viewUrl: string): ButtonProps => { // Software protocols if (viewUrl.includes(".tpl")) { - href = `javascript:window.external.msAddTrackingProtectionList('${hrefLocation}', '${hrefTitle}')`; - message = `Subscribe to ${name} with Internet Explorer's Tracking Protection List feature.`; + disabled = true; // IE not supported by FilterLists + // href = `javascript:window.external.msAddTrackingProtectionList('${hrefLocation}', '${hrefTitle}')`; + // message = `Subscribe to ${name} with Internet Explorer's Tracking Protection List feature.`; } if (viewUrl.includes(".lsrules") || viewUrl.includes("?hostformat=littlesnitch")) { href = `x-littlesnitch:subscribe-rules?url=${hrefLocation}`; @@ -78,5 +90,5 @@ const buildButtonProps = (name: string, viewUrl: string): ButtonProps => { const title = `${prefixes.length ? prefixes.join(" | ") + " | " : ""}${message}`; - return { type, href, title } + return [{ type, href, title }, disabled] }