mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 01:22:15 +03:00
hide billings and upgrade from ce (#4897)
This commit is contained in:
parent
481045b817
commit
1fa3f98604
@ -6,7 +6,14 @@
|
|||||||
%{key: "Invoices", value: "billing/invoices", icon: :banknotes},
|
%{key: "Invoices", value: "billing/invoices", icon: :banknotes},
|
||||||
%{key: "API Keys", value: "api-keys", icon: :key},
|
%{key: "API Keys", value: "api-keys", icon: :key},
|
||||||
%{key: "Danger Zone", value: "danger-zone", icon: :exclamation_triangle}
|
%{key: "Danger Zone", value: "danger-zone", icon: :exclamation_triangle}
|
||||||
] %>
|
]
|
||||||
|
|
||||||
|
options =
|
||||||
|
if Plausible.ee?() do
|
||||||
|
options
|
||||||
|
else
|
||||||
|
Enum.reject(options, fn option -> String.contains?(option.value, "billing") end)
|
||||||
|
end %>
|
||||||
|
|
||||||
<div class="container pt-6">
|
<div class="container pt-6">
|
||||||
<.styled_link class="text-indigo-600 font-bold text-sm" href="/sites">
|
<.styled_link class="text-indigo-600 font-bold text-sm" href="/sites">
|
||||||
|
Loading…
Reference in New Issue
Block a user