mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 08:32:25 +00:00
change casing of enum values
This commit is contained in:
1 parent
e65d748528
commit
e99be2b145
2 files changed
+9
-9
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user