3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-14 21:31:50 +00:00

ModActions: case list formatting tweaks

This commit is contained in:
Dragory 2019-01-12 12:22:20 +02:00
parent 655cc99ecb
commit d1debdc600

View file

@ -928,7 +928,8 @@ export class ModActionsPlugin extends ZeppelinPlugin {
reason = disableLinkPreviews(reason);
let line = `Case \`#${theCase.case_number}\` __${CaseTypes[theCase.type]}__ ${reason}`;
if (theCase.notes.length > 1) line += ` (+ ${theCase.notes.length - 1} notes)`;
if (theCase.notes.length > 1)
line += ` *(+${theCase.notes.length - 1} ${theCase.notes.length === 2 ? "note" : "notes"})*`;
lines.push(line);
}