Skip to content

Commit 1d8bf38

Browse files
committed
goals editable always on CE
1 parent 0c7c511 commit 1d8bf38

File tree

1 file changed

+12
-10
lines changed
  • lib/plausible_web/live/goal_settings

1 file changed

+12
-10
lines changed

lib/plausible_web/live/goal_settings/list.ex

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -306,19 +306,21 @@ defmodule PlausibleWeb.Live.GoalSettings.List do
306306
"""
307307
end
308308

309-
defp goal_editable?(goal, revenue_goals_enabled?, props_available?) do
310-
revenue_ok? =
311-
on_ee do
309+
on_ee do
310+
defp goal_editable?(goal, revenue_goals_enabled?, props_available?) do
311+
revenue_ok? =
312312
(Plausible.Goal.Revenue.revenue?(goal) and revenue_goals_enabled?) or
313313
not Plausible.Goal.Revenue.revenue?(goal)
314-
else
315-
true
316-
end
317314

318-
props_ok? =
319-
(Plausible.Goal.has_custom_props?(goal) and props_available?) or
320-
not Plausible.Goal.has_custom_props?(goal)
315+
props_ok? =
316+
(Plausible.Goal.has_custom_props?(goal) and props_available?) or
317+
not Plausible.Goal.has_custom_props?(goal)
321318

322-
revenue_ok? and props_ok?
319+
revenue_ok? and props_ok?
320+
end
321+
else
322+
defp goal_editable?(goal, revenue_goals_enabled?, props_available?) do
323+
always(true)
324+
end
323325
end
324326
end

0 commit comments

Comments
 (0)