Skip to content

Commit 272e7b8

Browse files
committed
fix(app_configuration): disable role checkbox for inapplicable decorators
- Update checkbox value to consider both roleConfig and isApplicable - Ensures the checkbox is only enabled for applicable roles
1 parent 027e2e2 commit 272e7b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/app_configuration/widgets/feed_decorator_form.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class _FeedDecoratorFormState extends State<FeedDecoratorForm>
243243
children: [
244244
CheckboxListTile(
245245
title: Text(l10n.visibleToRoleLabel(role.l10n(context))),
246-
value: roleConfig != null,
246+
value: roleConfig != null && isApplicable,
247247
// Disable the checkbox if the decorator is not applicable to the role.
248248
onChanged: isApplicable
249249
? (value) {

0 commit comments

Comments
 (0)