add settingsViewModel, implement name and first weekday

This commit is contained in:
marlon-erler
2024-07-20 02:00:00 +02:00
parent 7ceb77e032
commit 6d7d9e5250
6 changed files with 214 additions and 15 deletions
+2 -2
View File
@@ -25,13 +25,13 @@ export default class SettingsModel {
restoreUsername(): void {
const path = storageKeys.username;
const content = this.storageModel.restore(path);
this.username == content ?? "";
this.username = content ?? "";
}
restoreFirstDayofWeek(): void {
const path = storageKeys.firstDayOfWeek;
const content = this.storageModel.restoreStringifiable(path);
this.firstDayOfWeek == content ?? 0;
this.firstDayOfWeek = content ?? 0;
}
// init