mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 10:46:16 +01:00
move gh button + update agent display in table
This commit is contained in:
@@ -14,7 +14,7 @@ import { Input } from '@/components/ui/input'
|
||||
import { Label } from '@/components/ui/label'
|
||||
import { $publicKey, pb } from '@/lib/stores'
|
||||
import { Copy, Plus } from 'lucide-react'
|
||||
import { useState, useRef, MutableRefObject, useEffect } from 'react'
|
||||
import { useState, useRef, MutableRefObject } from 'react'
|
||||
import { useStore } from '@nanostores/react'
|
||||
import { copyToClipboard } from '@/lib/utils'
|
||||
|
||||
@@ -38,16 +38,6 @@ export function AddSystemButton() {
|
||||
# FILESYSTEM: /dev/sda1 # set to the correct filesystem for disk I/O stats`)
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (publicKey || !open) {
|
||||
return
|
||||
}
|
||||
// get public key
|
||||
pb.send('/api/beszel/getkey', {}).then(({ key }) => {
|
||||
$publicKey.set(key)
|
||||
})
|
||||
}, [open])
|
||||
|
||||
async function handleSubmit(e: SubmitEvent) {
|
||||
e.preventDefault()
|
||||
const formData = new FormData(e.target as HTMLFormElement)
|
||||
|
||||
Reference in New Issue
Block a user