fix
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
} from "$lib/billing-display";
|
||||
import { i18n } from "$lib/i18n";
|
||||
import { FolderTree, ListTree, Package, Rss, Sparkles } from "@lucide/svelte";
|
||||
import { planCapabilities } from "$lib/plan-capabilities.svelte";
|
||||
import { featureKeyForHref } from "$lib/plan-capabilities";
|
||||
|
||||
let {
|
||||
stats,
|
||||
@@ -89,7 +91,12 @@
|
||||
icon: Rss,
|
||||
tour: "stats-feeds"
|
||||
}
|
||||
]);
|
||||
// Every tile is a link, so hide the ones this member cannot open — a plan gate
|
||||
// or the owner's per-member overlay (settings > team) can deny any of them.
|
||||
].filter((card) => {
|
||||
const key = featureKeyForHref(card.href);
|
||||
return !key || planCapabilities.can(key);
|
||||
}));
|
||||
</script>
|
||||
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user