mirror of https://github.com/Chocobozzz/PeerTube
Better title for the date component
parent
9b879f69c4
commit
e6b455b4ea
|
@ -24,9 +24,11 @@ export class DateToggleComponent implements OnChanges {
|
|||
}
|
||||
|
||||
getTitle () {
|
||||
return this.toggled
|
||||
const target = this.toggled
|
||||
? this.dateRelative
|
||||
: this.dateAbsolute
|
||||
|
||||
return $localize`Toggle this date format to "${target}"`
|
||||
}
|
||||
|
||||
getContent () {
|
||||
|
|
Loading…
Reference in New Issue