diff --git a/js/src/forum/addTeamsSettings.js b/js/src/forum/addTeamsSettings.js index ca88d3d..a558a4a 100644 --- a/js/src/forum/addTeamsSettings.js +++ b/js/src/forum/addTeamsSettings.js @@ -14,7 +14,7 @@ class TeamsSettingsBlock extends Component { + onchange={value => user.savePreferences({ 'sbp-jm-msteams.enabled': value, }) @@ -50,7 +50,7 @@ class TeamsSettingsBlock extends Component { return ( + onchange={value => user.savePreferences({ [key]: value, }) @@ -63,8 +63,7 @@ class TeamsSettingsBlock extends Component { } export default function addTeamsSettings() { - extend(SettingsPage.prototype, 'content', function (vnode) { - // ✅ content ist ein Array → push! - vnode.children.push(); + extend(SettingsPage.prototype, 'content', function (items) { + items.add('teams-settings', , 50); }); } \ No newline at end of file