mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-10 19:03:12 +00:00
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:
parent
eb3aaa4c62
commit
758a67f59d
|
@ -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),
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue