mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-02-02 14:16:58 +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: [
|
children: [
|
||||||
ServiceStatusCard(status: service.status),
|
ServiceStatusCard(status: service.status),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
if (service.url != null)
|
if (service.url != null && !serviceDisabled)
|
||||||
ListTile(
|
ListTile(
|
||||||
iconColor: Theme.of(context).colorScheme.onBackground,
|
iconColor: Theme.of(context).colorScheme.onBackground,
|
||||||
onTap: () => launchURL(service.url),
|
onTap: () => launchURL(service.url),
|
||||||
|
|
|
@ -160,7 +160,9 @@ class _Card extends StatelessWidget {
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
if (service.url != '' && service.url != null)
|
if (service.url != '' &&
|
||||||
|
service.url != null &&
|
||||||
|
service.isEnabled)
|
||||||
Column(
|
Column(
|
||||||
children: [
|
children: [
|
||||||
_ServiceLink(
|
_ServiceLink(
|
||||||
|
|
Loading…
Reference in a new issue