Make sure default symbol is first from right-to-left

This commit is contained in:
rejas 2020-07-15 12:22:42 +02:00
parent 7489d19784
commit ec2fedd797

View File

@ -569,11 +569,11 @@ Module.register("calendar", {
let symbols = this.getCalendarPropertyAsArray(event.url, "symbol", this.config.defaultSymbol); let symbols = this.getCalendarPropertyAsArray(event.url, "symbol", this.config.defaultSymbol);
if (event.recurringEvent === true) { if (event.recurringEvent === true) {
symbols = this.mergeUnique(symbols, this.getCalendarPropertyAsArray(event.url, "recurringSymbol", this.config.recurringSymbol)); symbols = this.mergeUnique(this.getCalendarPropertyAsArray(event.url, "recurringSymbol", this.config.recurringSymbol), symbols);
} }
if (event.fullDayEvent === true) { if (event.fullDayEvent === true) {
symbols = this.mergeUnique(symbols, this.getCalendarPropertyAsArray(event.url, "fullDaySymbol", this.config.recurringSymbol)); symbols = this.mergeUnique(this.getCalendarPropertyAsArray(event.url, "fullDaySymbol", this.config.recurringSymbol), symbols);
} }
return symbols; return symbols;