uselagoon / lagoon-ui

Apache License 2.0
6 stars 2 forks source link

Change: ssh keys in the UI #279

Closed DaveDarsa closed 2 hours ago

DaveDarsa commented 3 days ago

relies on https://github.com/uselagoon/lagoon/pull/3662

will close #264

tobybellwood commented 1 day ago

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
     }
   }