Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: ssh keys in the UI #279

Merged
merged 3 commits into from
Jul 4, 2024
Merged

Change: ssh keys in the UI #279

merged 3 commits into from
Jul 4, 2024

Conversation

DaveDarsa
Copy link
Contributor

relies on uselagoon/lagoon#3662

will close #264

@tobybellwood
Copy link
Member

got this working locally ok - the only changes i needed were

diff --git a/src/components/SshKeys/index.js b/src/components/SshKeys/index.js
index d994ddf..abaa4fe 100644
--- a/src/components/SshKeys/index.js
+++ b/src/components/SshKeys/index.js
@@ -5,7 +5,7 @@ import Skeleton from 'react-loading-skeleton';
 import { Col, Modal, Row, Space } from 'antd';
 import Button from 'components/Button';
 import DeleteUserSSHPublicKey from 'lib/mutation/DeleteUserSSHPublicKey';
-import UpdateUserSSHPublicKey from 'lib/mutation/UpdateUserSshPublicKey';
+import UpdateUserSSHPublicKey from 'lib/mutation/UpdateUserSSHPublicKey';
 import Me from 'lib/query/Me';
 import moment from 'moment';
 
diff --git a/src/lib/mutation/AddUserSSHPublicKey.js b/src/lib/mutation/AddUserSSHPublicKey.js
index 94a106e..f15d7f0 100644
--- a/src/lib/mutation/AddUserSSHPublicKey.js
+++ b/src/lib/mutation/AddUserSSHPublicKey.js
@@ -5,7 +5,7 @@ export default gql`
     addUserSSHPublicKey(input: $input) {
       id
       name
-      publicKey
+      keyValue
       created
     }
   }

@shreddedbacon shreddedbacon added this to the 2.20.0 milestone Jul 4, 2024
@DaveDarsa DaveDarsa marked this pull request as ready for review July 4, 2024 18:01
@DaveDarsa DaveDarsa merged commit f7c881b into main Jul 4, 2024
6 of 8 checks passed
@DaveDarsa DaveDarsa deleted the ssh-keys branch July 4, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update SSH key type handling
3 participants