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 <naijiworld@protonmail.com>
Co-committed-by: NaiJi <naijiworld@protonmail.com>
This commit is contained in:
NaiJi 2024-08-06 18:56:07 +03:00 committed by Inex Code
parent eb3aaa4c62
commit 758a67f59d
2 changed files with 4 additions and 2 deletions

View file

@ -63,7 +63,7 @@ class _ServicePageState extends State<ServicePage> {
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),

View file

@ -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(