From 5c03c73731364ab7cea502530f1213fa28df0917 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Wed, 17 Jan 2024 01:43:29 +0000 Subject: [PATCH] Update filterable subscriber columns Don't allow filtering on userName since the attribute isn't in the collection to be filtered. Allow filtering on type since it is available and it would be userful. Change $createdAt type to datetime to allow filtering by greater/less than. --- .../messaging/topics/topic-[topic]/subscribers/store.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/console/project-[project]/messaging/topics/topic-[topic]/subscribers/store.ts b/src/routes/console/project-[project]/messaging/topics/topic-[topic]/subscribers/store.ts index ca6538023a..f5186a589f 100644 --- a/src/routes/console/project-[project]/messaging/topics/topic-[topic]/subscribers/store.ts +++ b/src/routes/console/project-[project]/messaging/topics/topic-[topic]/subscribers/store.ts @@ -3,9 +3,9 @@ import { writable } from 'svelte/store'; export const columns = writable([ { id: '$id', title: 'Subscriber ID', type: 'string', show: true, width: 140 }, - { id: 'userName', title: 'Name', type: 'string', show: true, width: 100 }, + { id: 'userName', title: 'Name', type: 'string', show: true, filter: false, width: 100 }, { id: 'targetId', title: 'Target ID', type: 'string', show: true, width: 140 }, { id: 'target', title: 'Target', type: 'string', show: true, filter: false, width: 140 }, - { id: 'type', title: 'Type', type: 'string', show: true, filter: false, width: 80 }, - { id: '$createdAt', title: 'Created', type: 'string', show: true, width: 100 } + { id: 'type', title: 'Type', type: 'string', show: true, width: 80 }, + { id: '$createdAt', title: 'Created', type: 'datetime', show: true, width: 100 } ]);