diff --git a/CHANGELOG.md b/CHANGELOG.md index fcd6c8109a..4364f327ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,9 @@ and this project adheres to [#4524](https://github.com/OpenFn/lightning/issues/4524) - Copying api tokens doesn't work on unsecure non-localhost contexts [PR#4551](https://github.com/OpenFn/lightning/pull/4551) +- Copy token button on the Personal Access Tokens page now shows a + 'Copied!' tooltip on click and no longer causes the icon to flicker + [#2463](https://github.com/OpenFn/lightning/issues/2463) - Fix AI assistant authorization for support users on projects with support access enabled [#4571](https://github.com/OpenFn/lightning/issues/4571) diff --git a/lib/lightning_web/live/tokens_live/index.ex b/lib/lightning_web/live/tokens_live/index.ex index 4c0a9a4d92..167a37830e 100644 --- a/lib/lightning_web/live/tokens_live/index.ex +++ b/lib/lightning_web/live/tokens_live/index.ex @@ -7,7 +7,6 @@ defmodule LightningWeb.TokensLive.Index do alias Lightning.Accounts alias Lightning.Policies.Permissions alias Lightning.Policies.Users - alias Phoenix.LiveView.JS on_mount {LightningWeb.Hooks, :assign_projects} @@ -59,13 +58,6 @@ defmodule LightningWeb.TokensLive.Index do |> put_flash(:info, "Token created successfully")} end - @impl true - def handle_event("copy", _, socket) do - {:noreply, - socket - |> put_flash(:info, "Token copied successfully")} - end - defp get_api_tokens_for(user) do Accounts.list_api_tokens(user) end diff --git a/lib/lightning_web/live/tokens_live/index.html.heex b/lib/lightning_web/live/tokens_live/index.html.heex index 0d3d20c0ef..d62ee3941d 100644 --- a/lib/lightning_web/live/tokens_live/index.html.heex +++ b/lib/lightning_web/live/tokens_live/index.html.heex @@ -36,7 +36,7 @@ Make sure to copy your token now as you will not be able to see it again. -
+
- + +