Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
aerosol committed Jul 2, 2024
1 parent 188e1af commit a520ae5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/plausible/site/traffic_change_notification.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ defmodule Plausible.Site.TrafficChangeNotification do
schema
|> cast(attrs, [:site_id, :recipients, :threshold, :type])
|> validate_required([:site_id, :recipients, :threshold, :type])
|> validate_number(:threshold, greater_than_or_equal_to: 0)
|> unique_constraint([:site_id, :type])
end

Expand Down
1 change: 1 addition & 0 deletions lib/plausible_web/templates/site/traffic_change_form.heex
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
</svg>
</div>
<%= number_input(f, :threshold,
min: 0,
class:
"focus:ring-indigo-500 dark:bg-gray-900 focus:border-indigo-500 block w-full rounded-none rounded-l-md pl-10 sm:text-sm border-gray-300 dark:border-gray-500 dark:text-gray-100"
) %>
Expand Down

0 comments on commit a520ae5

Please sign in to comment.