refactor(multi-server): copy the right value

This commit is contained in:
Mauricio Siu
2024-09-22 17:12:28 -06:00
parent 31a4a0814e
commit cb16de63df

View File

@@ -179,7 +179,9 @@ export const SetupServer = ({ serverId }: Props) => {
type="button"
className="absolute right-2 top-2"
onClick={() => {
copy(server?.sshKey?.publicKey || "");
copy(
`echo "${server?.sshKey?.publicKey}" >> ~/.ssh/authorized_keys`,
);
toast.success("Copied to clipboard");
}}
>