Fix timestamp setting not appearing on mobile

This commit is contained in:
Stubenhocker1399
2019-09-08 20:44:52 +02:00
parent e0476cefb5
commit 4eeaf3994c
2 changed files with 6 additions and 11 deletions
@@ -29,7 +29,6 @@ export class SettingsModal implements OnInit, OnDestroy {
off = false;
twelve = false;
twentyFour = false;
timestampText: 'Disabled' | '24 Hour mode' | '12 Hour mode' = 'Disabled';
@Output() close = new EventEmitter();
account: AccountSettings = {};
browser: BrowserSettings = {};
@@ -121,15 +120,12 @@ export class SettingsModal implements OnInit, OnDestroy {
switch (this.browser.timestamp) {
case '12':
this.twelve = true;
this.timestampText = '12 Hour mode';
break;
case '24':
this.twentyFour = true;
this.timestampText = '24 Hour mode';
break;
default:
this.off = true;
this.timestampText = 'Disabled';
break;
}
}