change casing of enum values

This commit is contained in:
Ivy Collective committed 2026-08-29 19:07:27 -04:00
1 parent e65d748528
commit e99be2b145
2 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -1809,9 +1809,9 @@ function formatTime(date: Date) {
const datestring = date.toLocaleDateString();
let hour12: boolean | undefined = undefined;
if (conf.clockFormatOverride == ClockFormatOverride.Show12Hour) {
if (conf.clockFormatOverride == ClockFormatOverride.show12Hour) {
hour12 = true;
} else if (conf.clockFormatOverride == ClockFormatOverride.Show24Hour) {
} else if (conf.clockFormatOverride == ClockFormatOverride.show24Hour) {
hour12 = false;
}
+7 -7
View File
@@ -27,14 +27,14 @@ export const ThemeOptionValues = [
ThemeOption.NightSkyAccent,
];
export const enum ClockFormatOverride {
Default = "default",
Show12Hour = "12hour",
Show24Hour = "24hour",
default = "default",
show12Hour = "12hour",
show24Hour = "24hour",
}
export const ClockFormatOverrideValues = [
ClockFormatOverride.Default,
ClockFormatOverride.Show12Hour,
ClockFormatOverride.Show24Hour,
ClockFormatOverride.default,
ClockFormatOverride.show12Hour,
ClockFormatOverride.show24Hour,
];
export class UserPreferences {
@@ -53,7 +53,7 @@ export class UserPreferences {
checkMemberList = false;
gifProvidor?: string;
showToday = true;
clockFormatOverride: ClockFormatOverride = ClockFormatOverride.Default;
clockFormatOverride: ClockFormatOverride = ClockFormatOverride.default;
constructor(init?: Partial<UserPreferences>) {
Object.assign(this, init);