Skip to content

Commit

Permalink
feat(event): add new column (#263)
Browse files Browse the repository at this point in the history
* fix(login): wallet login issues

* add column
  • Loading branch information
DLHTX authored Aug 14, 2023
1 parent 32445ff commit cf717c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/store/lib/w3bstream/schema/applet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ export default class AppletModule {
key: 'f_handler',
label: 'Handler'
},

{
key: 'actions',
label: 'Actions',
Expand All @@ -324,7 +325,7 @@ export default class AppletModule {
appletID: item.f_applet_id.toString(),
eventType: String(item.f_event_type),
handler: item.f_handler,
autoCollectMetric:item.f_auto_collect_metric == 1 ? true : false
autoCollectMetric: item.f_auto_collect_metric == 1 ? true : false
});
const formData = await hooks.getFormData({
title: 'Edit Strategy',
Expand All @@ -335,7 +336,7 @@ export default class AppletModule {
}
]
});
const { appletID, eventType, handler,autoCollectMetric } = formData;
const { appletID, eventType, handler, autoCollectMetric } = formData;
if (appletID && eventType && handler) {
const applet = this.curApplet;
try {
Expand Down
7 changes: 7 additions & 0 deletions src/store/lib/w3bstream/schema/strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ export default class StrategyModule {
key: 'f_handler',
label: 'Handler'
},
{
key: 'f_auto_collect_metric',
label: 'Auto Collect Metric',
render: (item) => {
return item.f_auto_collect_metric == 1 ? 'Yes' : 'No';
}
},
{
key: 'actions',
label: 'Actions',
Expand Down

0 comments on commit cf717c2

Please sign in to comment.