Skip to content

Commit 4d44e55

Browse files
committed
Display app name instead of system ID in notifications
1 parent 5407ce7 commit 4d44e55

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/core-dojo/src/DojoNotificationStore.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,12 @@ export class DojoNotificationStore implements NotificationStore {
7575
),
7676
(rows: NotificationRowData[]) => {
7777
return rows.map((item) => {
78+
const app = this.core.appStore.getBySystem(item.app);
7879
return {
7980
from: item.from,
8081
to: item.to,
8182
color: item.color,
82-
app: item.app,
83+
app: app?.name || item.app,
8384
position: {
8485
x: item["position.x"],
8586
y: item["position.y"],
@@ -119,14 +120,15 @@ export class DojoNotificationStore implements NotificationStore {
119120
return;
120121
}
121122

123+
const app = this.core.appStore.getBySystem(p.app.value);
122124
const notification = {
123125
from:
124126
p.from.value.option === "None"
125127
? null
126128
: p.from.value.value.value,
127129
to: p.to.value.option === "None" ? null : p.to.value.value.value,
128130
color: p.color.value,
129-
app: p.app.value,
131+
app: app?.name || p.app.value,
130132
position: {
131133
x: p.position.value.x.value,
132134
y: p.position.value.y.value,

0 commit comments

Comments
 (0)