mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
ModActions: case list formatting tweaks
This commit is contained in:
parent
655cc99ecb
commit
d1debdc600
1 changed files with 2 additions and 1 deletions
|
@ -928,7 +928,8 @@ export class ModActionsPlugin extends ZeppelinPlugin {
|
||||||
reason = disableLinkPreviews(reason);
|
reason = disableLinkPreviews(reason);
|
||||||
|
|
||||||
let line = `Case \`#${theCase.case_number}\` __${CaseTypes[theCase.type]}__ ${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);
|
lines.push(line);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue