From c29bcc89b525ded6b6ad26aed167f5d7d688f5e0 Mon Sep 17 00:00:00 2001 From: Victor Truong Date: Mon, 15 Mar 2021 02:40:53 -0700 Subject: [PATCH] Fix typo with "succesfully" (#836) --- lib/plausible_web/controllers/auth_controller.ex | 2 +- lib/plausible_web/controllers/site_controller.ex | 10 +++++----- .../templates/billing/upgrade_success.html.eex | 2 +- .../controllers/billing_controller_test.exs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/plausible_web/controllers/auth_controller.ex b/lib/plausible_web/controllers/auth_controller.ex index 1262883c4..3cda67586 100644 --- a/lib/plausible_web/controllers/auth_controller.ex +++ b/lib/plausible_web/controllers/auth_controller.ex @@ -313,7 +313,7 @@ defmodule PlausibleWeb.AuthController do case Repo.update(changes) do {:ok, _user} -> conn - |> put_flash(:success, "Account settings saved succesfully") + |> put_flash(:success, "Account settings saved successfully") |> redirect(to: "/settings") {:error, changeset} -> diff --git a/lib/plausible_web/controllers/site_controller.ex b/lib/plausible_web/controllers/site_controller.ex index da3384387..5bcc55202 100644 --- a/lib/plausible_web/controllers/site_controller.ex +++ b/lib/plausible_web/controllers/site_controller.ex @@ -120,7 +120,7 @@ defmodule PlausibleWeb.SiteController do case Plausible.Goals.create(site, goal) do {:ok, _} -> conn - |> put_flash(:success, "Goal created succesfully") + |> put_flash(:success, "Goal created successfully") |> redirect(to: "/#{URI.encode_www_form(site.domain)}/settings/goals") {:error, changeset} -> @@ -138,7 +138,7 @@ defmodule PlausibleWeb.SiteController do Plausible.Goals.delete(goal_id) conn - |> put_flash(:success, "Goal deleted succesfully") + |> put_flash(:success, "Goal deleted successfully") |> redirect(to: "/#{URI.encode_www_form(website)}/settings/goals") end @@ -252,7 +252,7 @@ defmodule PlausibleWeb.SiteController do |> Repo.update!() conn - |> put_flash(:success, "Google integration saved succesfully") + |> put_flash(:success, "Google integration saved successfully") |> redirect(to: "/#{URI.encode_www_form(site.domain)}/settings/search-console") end @@ -303,7 +303,7 @@ defmodule PlausibleWeb.SiteController do Plausible.ClickhouseRepo.clear_stats_for(site.domain) conn - |> put_flash(:success, "Site deleted succesfully along with all pageviews") + |> put_flash(:success, "Site deleted successfully along with all pageviews") |> redirect(to: "/sites") end @@ -615,7 +615,7 @@ defmodule PlausibleWeb.SiteController do Repo.delete!(site.custom_domain) conn - |> put_flash(:success, "Custom domain deleted succesfully") + |> put_flash(:success, "Custom domain deleted successfully") |> redirect(to: "/#{URI.encode_www_form(site.domain)}/settings/custom-domain") end diff --git a/lib/plausible_web/templates/billing/upgrade_success.html.eex b/lib/plausible_web/templates/billing/upgrade_success.html.eex index 631644fd0..4990bbacf 100644 --- a/lib/plausible_web/templates/billing/upgrade_success.html.eex +++ b/lib/plausible_web/templates/billing/upgrade_success.html.eex @@ -1,7 +1,7 @@
- Subscription created succesfully + Subscription created successfully
diff --git a/test/plausible_web/controllers/billing_controller_test.exs b/test/plausible_web/controllers/billing_controller_test.exs index f115f0d9f..61e02d81c 100644 --- a/test/plausible_web/controllers/billing_controller_test.exs +++ b/test/plausible_web/controllers/billing_controller_test.exs @@ -40,7 +40,7 @@ defmodule PlausibleWeb.BillingControllerTest do test "shows success page after user subscribes", %{conn: conn} do conn = get(conn, "/billing/upgrade-success") - assert html_response(conn, 200) =~ "Subscription created succesfully" + assert html_response(conn, 200) =~ "Subscription created successfully" end end end