mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
calendar: Use template strings over concatenation
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710
This commit is contained in:
parent
743ce23fbc
commit
7db5f8b28e
1 changed files with 4 additions and 4 deletions
|
|
@ -688,15 +688,15 @@ var EventMessage = class EventMessage extends MessageList.Message {
|
|||
let rtl = Clutter.get_default_text_direction() == Clutter.TextDirection.RTL;
|
||||
if (this._event.date < periodBegin && !this._event.allDay) {
|
||||
if (rtl)
|
||||
title = title + ELLIPSIS_CHAR;
|
||||
title = `${title}${ELLIPSIS_CHAR}`;
|
||||
else
|
||||
title = ELLIPSIS_CHAR + title;
|
||||
title = `${ELLIPSIS_CHAR}${title}`;
|
||||
}
|
||||
if (this._event.end > periodEnd && !this._event.allDay) {
|
||||
if (rtl)
|
||||
title = ELLIPSIS_CHAR + title;
|
||||
title = `${ELLIPSIS_CHAR}${title}`;
|
||||
else
|
||||
title = title + ELLIPSIS_CHAR;
|
||||
title = `${title}${ELLIPSIS_CHAR}`;
|
||||
}
|
||||
return title;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue