feat: add more pages
This commit is contained in:
15
composables/usePortalTags.ts
Normal file
15
composables/usePortalTags.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export const usePortalTags = () => {
|
||||
const user = useDirectusUser();
|
||||
|
||||
const tags = computed(() => (toValue(user)?.tags as Array<string>) || []);
|
||||
|
||||
const details = computed(() => {
|
||||
const value = toValue(tags);
|
||||
|
||||
return {
|
||||
interest: value.includes("portal-interest"),
|
||||
};
|
||||
});
|
||||
|
||||
return details;
|
||||
};
|
||||
Reference in New Issue
Block a user