Gaia
Gaia
NNovu
Created by Gaia on 11/12/2024 in #💬│support
Hide workflows for specific users in Preferences component
Just tested and working fine now! Thanks 💯 🙏
16 replies
NNovu
Created by Gaia on 11/12/2024 in #💬│support
Hide workflows for specific users in Preferences component
Thank you very much, I'll wait for you updates 🚀
16 replies
NNovu
Created by Gaia on 11/12/2024 in #💬│support
Hide workflows for specific users in Preferences component
Sorry @Dima Grossman do I have to set the property preferencesFilter in the Inbox component even If I'm separating the Preferences from the Inbox? I tried conditionally like this:
return (
<>
{subscriberId && (
<Inbox
subscriberId={subscriberId}
applicationIdentifier={import.meta.env.VITE_NOVU_APP_ID}
routerPush={(path: string) => router.push(path)}
preferencesFilter={{ tags: hasReputation ? ['reputation_basic'] : hasReputationPro ? ['reputation_pro'] : ['test_push'] }}
>
<Preferences />
</Inbox>
)}
</>
);
return (
<>
{subscriberId && (
<Inbox
subscriberId={subscriberId}
applicationIdentifier={import.meta.env.VITE_NOVU_APP_ID}
routerPush={(path: string) => router.push(path)}
preferencesFilter={{ tags: hasReputation ? ['reputation_basic'] : hasReputationPro ? ['reputation_pro'] : ['test_push'] }}
>
<Preferences />
</Inbox>
)}
</>
);
` But I can still see all the workflows (even the one with tags not specified in the filter).
16 replies
NNovu
Created by Gaia on 11/12/2024 in #💬│support
Hide workflows for specific users in Preferences component
That's great, thanks!!
16 replies
NNovu
Created by Gaia on 11/12/2024 in #💬│support
Hide workflows for specific users in Preferences component
I guess I was looking for it in the Workflow page of the docs or in the "Preferences" page inside the Inbox section
16 replies
NNovu
Created by Gaia on 11/12/2024 in #💬│support
Hide workflows for specific users in Preferences component
Thank you very much! I thought I had read everywhere on the docs but I must have skipped this part without realizing it 😅
16 replies