Better title for the date component

pull/6000/head
Chocobozzz 2023-10-09 10:12:10 +02:00
parent 9b879f69c4
commit e6b455b4ea
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -24,9 +24,11 @@ export class DateToggleComponent implements OnChanges {
} }
getTitle () { getTitle () {
return this.toggled const target = this.toggled
? this.dateRelative ? this.dateRelative
: this.dateAbsolute : this.dateAbsolute
return $localize`Toggle this date format to "${target}"`
} }
getContent () { getContent () {