@@ -12,7 +12,7 @@ import {
1212 type PersonalSettings ,
1313 type DiscourseNodeSettings ,
1414} from "./zodSchema" ;
15- import { emitSettingChange } from "./settingsEmitter" ;
15+ import { emitSettingChange , settingKeys } from "./settingsEmitter" ;
1616
1717type PullWatchCallback = Parameters < AddPullWatch > [ 2 ] ;
1818
@@ -93,7 +93,7 @@ export const featureFlagHandlers: Partial<
9393> = {
9494 /* eslint-disable @typescript-eslint/naming-convention */
9595 "Enable left sidebar" : ( newValue , oldValue ) => {
96- emitSettingChange ( "Enable left sidebar" , newValue , oldValue ) ;
96+ emitSettingChange ( settingKeys . leftSidebarFlag , newValue , oldValue ) ;
9797 } ,
9898 /* eslint-enable @typescript-eslint/naming-convention */
9999} ;
@@ -109,7 +109,7 @@ type GlobalSettingsHandlers = {
109109export const globalSettingsHandlers : GlobalSettingsHandlers = {
110110 /* eslint-disable @typescript-eslint/naming-convention */
111111 "Left sidebar" : ( newValue , oldValue ) => {
112- emitSettingChange ( "global:Left sidebar" , newValue , oldValue ) ;
112+ emitSettingChange ( settingKeys . globalLeftSidebar , newValue , oldValue ) ;
113113 } ,
114114 /* eslint-enable @typescript-eslint/naming-convention */
115115} ;
@@ -125,7 +125,7 @@ type PersonalSettingsHandlers = {
125125export const personalSettingsHandlers : PersonalSettingsHandlers = {
126126 /* eslint-disable @typescript-eslint/naming-convention */
127127 "Left sidebar" : ( newValue , oldValue ) => {
128- emitSettingChange ( "personal:Left sidebar" , newValue , oldValue ) ;
128+ emitSettingChange ( settingKeys . personalLeftSidebar , newValue , oldValue ) ;
129129 } ,
130130 /* eslint-enable @typescript-eslint/naming-convention */
131131} ;
0 commit comments