This commit is contained in:
PxlLoewe
2025-06-02 13:02:02 -07:00
6 changed files with 56 additions and 46 deletions

View File

@@ -41,14 +41,14 @@ export const ConnectionBtn = () => {
{connection.status == "connected" ? (
<button
className="btn btn-soft btn-error"
className="btn btn-sm btn-soft btn-success"
type="submit"
onSubmit={() => false}
onClick={() => {
connection.disconnect();
modalRef.current?.showModal();
}}
>
Trennen
Verbunden
</button>
) : (
<button
@@ -115,7 +115,7 @@ export const ConnectionBtn = () => {
</fieldset>
<div className="modal-action flex justify-between w-full">
<form method="dialog" className="w-full flex justify-between">
<button className="btn btn-soft">Abbrechen</button>
<button className="btn btn-soft">Zurück</button>
{connection.status == "connected" ? (
<button
className="btn btn-soft btn-error"
@@ -125,7 +125,7 @@ export const ConnectionBtn = () => {
connection.disconnect();
}}
>
Trennen
Verbindung Trennen
</button>
) : (
<button