feat(editor): fixed toolbar preference (#2185)

* feat(editor): fixed toolbar preference

* remove key

* cleanup translation strings

* update axios
This commit is contained in:
Philip Okugbe
2026-05-09 13:27:03 +01:00
committed by GitHub
parent 2d8b470495
commit bdc369fce0
33 changed files with 1376 additions and 127 deletions
@@ -22,6 +22,10 @@ export class UpdateUserDto extends PartialType(
@IsIn(['read', 'edit'])
pageEditMode: string;
@IsOptional()
@IsBoolean()
editorToolbar: boolean;
@IsOptional()
@IsString()
locale: string;
@@ -61,6 +61,14 @@ export class UserService {
);
}
if (typeof updateUserDto.editorToolbar !== 'undefined') {
return this.userRepo.updatePreference(
userId,
'editorToolbar',
updateUserDto.editorToolbar,
);
}
const notificationSettings: Record<string, NotificationSettingKey> = {
notificationPageUpdates: 'page.updated',
notificationPageUserMention: 'page.userMention',