mist wenn man nichts kann!

This commit is contained in:
JM 2026-05-06 11:27:47 +02:00
parent 998b11c519
commit 7666011b7c
1 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@ class TeamsSettingsBlock extends Component {
<Switch
state={user.preference('sbp-jm-msteams.enabled')}
onchange={value =>
onchange={(value) =>
user.savePreferences({
'sbp-jm-msteams.enabled': value,
})
@ -50,7 +50,7 @@ class TeamsSettingsBlock extends Component {
return (
<Switch
state={user.preference(key)}
onchange={value =>
onchange={(value) =>
user.savePreferences({
[key]: value,
})
@ -63,7 +63,8 @@ class TeamsSettingsBlock extends Component {
}
export default function addTeamsSettings() {
extend(SettingsPage.prototype, 'content', function (items) {
items.add('teams-settings', <TeamsSettingsBlock />, 50);
extend(SettingsPage.prototype, 'content', function (vnode) {
// ✅ content ist ein Array → push!
vnode.children.push(<TeamsSettingsBlock />);
});
}