terrier-engine 4.29.4 → 4.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ import {DdDiveRun} from "../gen/models"
8
8
  import Db from "../dd-db"
9
9
  import dayjs from "dayjs"
10
10
  import Dates from "../queries/dates"
11
- import DiveRuns from "./dive-runs";
11
+ import DiveRuns from "./dive-runs"
12
12
 
13
13
  const log = new Logger("Dive Delivery")
14
14
 
@@ -100,7 +100,17 @@ class DiveDeliveryList extends TerrierPart<DiveEditorState> {
100
100
  render(parent: PartTag) {
101
101
  for (const run of this.runs) {
102
102
  parent.div(".run", view => {
103
- view.div(".recipients.glyp-users.with-icon").text(run.delivery_recipients?.join("; ") || "No Recipients")
103
+ view.div(".recipients", recipientsList => {
104
+ if (run.delivery_recipients?.length) {
105
+ run.delivery_recipients.forEach((recipient) => {
106
+ recipientsList.div(".recipient.glyp-users.with-icon").text(recipient)
107
+ })
108
+ }
109
+ else {
110
+ // no recipients
111
+ recipientsList.div().text("No Recipients")
112
+ }
113
+ })
104
114
  view.div('.datetime', dateTimeView => {
105
115
  const d = dayjs(run.created_at)
106
116
  dateTimeView.div(".date").text(d.format(Dates.displayFormat))
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "files": [
5
5
  "*"
6
6
  ],
7
- "version": "4.29.4",
7
+ "version": "4.30.0",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Terrier-Tech/terrier-engine"