mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
splice not delete
This commit is contained in:
committed by
Drew Ansbacher
parent
7e3e1cc190
commit
cf5aa94df3
@@ -63,6 +63,7 @@ export class SSHKeysPage {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const key = await this.embassyApi.addSshKey({ key: pubkey })
|
const key = await this.embassyApi.addSshKey({ key: pubkey })
|
||||||
|
console.log('key', key)
|
||||||
this.sshKeys.push(key)
|
this.sshKeys.push(key)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.errToast.present(e)
|
this.errToast.present(e)
|
||||||
@@ -103,7 +104,7 @@ export class SSHKeysPage {
|
|||||||
try {
|
try {
|
||||||
const entry = this.sshKeys[i]
|
const entry = this.sshKeys[i]
|
||||||
await this.embassyApi.deleteSshKey({ fingerprint: entry.fingerprint })
|
await this.embassyApi.deleteSshKey({ fingerprint: entry.fingerprint })
|
||||||
delete this.sshKeys[i]
|
this.sshKeys.splice(i, 1)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.errToast.present(e)
|
this.errToast.present(e)
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user