defmodule PlausibleWeb.Live.PropsSettings.List do @moduledoc """ Phoenix LiveComponent module that renders a list of custom properties """ use Phoenix.LiveComponent use Phoenix.HTML attr(:props, :list, required: true) attr(:domain, :string, required: true) attr(:filter_text, :string) def render(assigns) do ~H"""
+ Add Property
<%= if is_list(@props) && length(@props) > 0 do %> <% else %>

No properties found for this site. Please refine or reset your search. No properties configured for this site.

<% end %>
""" end defp delete_confirmation_text(prop) do """ Are you sure you want to remove the following property: #{prop} This will just affect the UI, all of your analytics data will stay intact. """ end end