mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
Fix timestamp setting not appearing on mobile
This commit is contained in:
@@ -73,14 +73,13 @@
|
|||||||
| Only allow whispers from friends
|
| Only allow whispers from friends
|
||||||
.form-group
|
.form-group
|
||||||
.form-group
|
.form-group
|
||||||
label#chatlog-opacity-label Message timestamp
|
label#chatlog-opacity-label Timestamp
|
||||||
div
|
div
|
||||||
.btn-group.ml-2(btnCheckbox)
|
.btn-group.mb-2(btnCheckbox)
|
||||||
button.btn.btn-outline-secondary.d-none.d-sm-block([class.active]='off' (click)='switchTimestamp()') Off
|
button.btn.btn-outline-secondary.d-sm-block([class.active]='off' (click)='switchTimestamp()') None
|
||||||
button.btn.btn-outline-secondary.d-none.d-sm-block([class.active]='twelve' (click)='switchTimestamp("12")') 12
|
button.btn.btn-outline-secondary.d-sm-block([class.active]='twelve' (click)='switchTimestamp("12")') 12-hour format
|
||||||
button.btn.btn-outline-secondary.d-none.d-sm-block([class.active]='twentyFour' (click)='switchTimestamp("24")') 24
|
button.btn.btn-outline-secondary.d-sm-block([class.active]='twentyFour' (click)='switchTimestamp("24")') 24-hour format
|
||||||
span.ml-2 {{timestampText}}
|
small.form-text.text-muted.mt-0 Displays a timestamp in front of chatlog messages
|
||||||
//small.form-text.text-muted.mt-0 Shows message time
|
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
label#chatlog-opacity-label Chatlog background opacity
|
label#chatlog-opacity-label Chatlog background opacity
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ export class SettingsModal implements OnInit, OnDestroy {
|
|||||||
off = false;
|
off = false;
|
||||||
twelve = false;
|
twelve = false;
|
||||||
twentyFour = false;
|
twentyFour = false;
|
||||||
timestampText: 'Disabled' | '24 Hour mode' | '12 Hour mode' = 'Disabled';
|
|
||||||
@Output() close = new EventEmitter();
|
@Output() close = new EventEmitter();
|
||||||
account: AccountSettings = {};
|
account: AccountSettings = {};
|
||||||
browser: BrowserSettings = {};
|
browser: BrowserSettings = {};
|
||||||
@@ -121,15 +120,12 @@ export class SettingsModal implements OnInit, OnDestroy {
|
|||||||
switch (this.browser.timestamp) {
|
switch (this.browser.timestamp) {
|
||||||
case '12':
|
case '12':
|
||||||
this.twelve = true;
|
this.twelve = true;
|
||||||
this.timestampText = '12 Hour mode';
|
|
||||||
break;
|
break;
|
||||||
case '24':
|
case '24':
|
||||||
this.twentyFour = true;
|
this.twentyFour = true;
|
||||||
this.timestampText = '24 Hour mode';
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
this.off = true;
|
this.off = true;
|
||||||
this.timestampText = 'Disabled';
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user