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
@ -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…
Reference in New Issue
Block a user