Fix secret-copy id (#2169)

This commit is contained in:
Cristine Guadelupe 2023-08-21 15:46:32 +07:00 committed by GitHub
parent c5530c17b3
commit c768681e23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,7 @@ defmodule LivebookWeb.SessionLive.SecretsListComponent do
*****
</span>
<button
id={"session-secret-#{@secret.name}-delete"}
id={"session-secret-#{@secret.name}-copy"}
type="button"
phx-click={JS.dispatch("lb:clipcopy", detail: %{content: @secret.value})}
class="icon-button"
@ -167,7 +167,7 @@ defmodule LivebookWeb.SessionLive.SecretsListComponent do
*****
</span>
<button
id={"session-secret-#{@secret.name}-delete"}
id={"#{@id}-copy-button"}
type="button"
phx-click={JS.dispatch("lb:clipcopy", detail: %{content: @secret.value})}
class="icon-button"