From 758a67f59dff2cd6f070d315a676b531b06625ac Mon Sep 17 00:00:00 2001 From: NaiJi Date: Tue, 6 Aug 2024 18:56:07 +0300 Subject: [PATCH] fix(services): Remove service link promotion for disabled services (#548) - Resolves #547 Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/pulls/548 Co-authored-by: NaiJi Co-committed-by: NaiJi --- lib/ui/pages/services/service_page.dart | 2 +- lib/ui/pages/services/services.dart | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ui/pages/services/service_page.dart b/lib/ui/pages/services/service_page.dart index a01e45f5..61d5055c 100644 --- a/lib/ui/pages/services/service_page.dart +++ b/lib/ui/pages/services/service_page.dart @@ -63,7 +63,7 @@ class _ServicePageState extends State { children: [ ServiceStatusCard(status: service.status), const SizedBox(height: 16), - if (service.url != null) + if (service.url != null && !serviceDisabled) ListTile( iconColor: Theme.of(context).colorScheme.onBackground, onTap: () => launchURL(service.url), diff --git a/lib/ui/pages/services/services.dart b/lib/ui/pages/services/services.dart index 2662ec09..0ac5696b 100644 --- a/lib/ui/pages/services/services.dart +++ b/lib/ui/pages/services/services.dart @@ -160,7 +160,9 @@ class _Card extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ const SizedBox(height: 8), - if (service.url != '' && service.url != null) + if (service.url != '' && + service.url != null && + service.isEnabled) Column( children: [ _ServiceLink(