From cf717c27b5fb31b06568a50393ae4c45872b8ad6 Mon Sep 17 00:00:00 2001 From: DLHTX <35157091+DLHTX@users.noreply.github.com> Date: Mon, 14 Aug 2023 18:00:52 +0800 Subject: [PATCH] feat(event): add new column (#263) * fix(login): wallet login issues * add column --- src/store/lib/w3bstream/schema/applet.tsx | 5 +++-- src/store/lib/w3bstream/schema/strategy.ts | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/store/lib/w3bstream/schema/applet.tsx b/src/store/lib/w3bstream/schema/applet.tsx index d8ab1e0e..06a9b514 100644 --- a/src/store/lib/w3bstream/schema/applet.tsx +++ b/src/store/lib/w3bstream/schema/applet.tsx @@ -310,6 +310,7 @@ export default class AppletModule { key: 'f_handler', label: 'Handler' }, + { key: 'actions', label: 'Actions', @@ -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', @@ -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 { diff --git a/src/store/lib/w3bstream/schema/strategy.ts b/src/store/lib/w3bstream/schema/strategy.ts index 8117b99c..f8bbf5b7 100644 --- a/src/store/lib/w3bstream/schema/strategy.ts +++ b/src/store/lib/w3bstream/schema/strategy.ts @@ -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',