]> cat aescling's git repositories - mastodon.git/commitdiff
Fix dynamic updating of “Bootstrap timeline accounts” admin setting (#15325)
authorThibG <thib@sitedethib.com>
Mon, 14 Dec 2020 08:37:58 +0000 (09:37 +0100)
committerGitHub <noreply@github.com>
Mon, 14 Dec 2020 08:37:58 +0000 (09:37 +0100)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/packs/admin.js

index 65b8dc040d24d4f3ac8f19da815c7009256be90b..1c44fb45b72954f05f3874ae43caaa9dfcb50106 100644 (file)
@@ -57,8 +57,10 @@ const onEnableBootstrapTimelineAccountsChange = (target) => {
     bootstrapTimelineAccountsField.disabled = !target.checked;
     if (target.checked) {
       bootstrapTimelineAccountsField.parentElement.classList.remove('disabled');
+      bootstrapTimelineAccountsField.parentElement.parentElement.classList.remove('disabled');
     } else {
       bootstrapTimelineAccountsField.parentElement.classList.add('disabled');
+      bootstrapTimelineAccountsField.parentElement.parentElement.classList.add('disabled');
     }
   }
 };