update, allow disconnecting

This commit is contained in:
marlon-erler
2024-07-08 13:35:26 +02:00
parent 5965ec9de0
commit afccc56b81
7 changed files with 54 additions and 5 deletions
+9
View File
@@ -2,7 +2,9 @@ import * as React from "bloatless-react";
import {
cannotConnect,
cannotDisonnect,
connect,
disconnect,
serverAddress,
} from "../model";
@@ -23,6 +25,13 @@ export function ConnectionInputView() {
</div>
</label>
<div class="flex-row width-input justify-end">
<button
class="danger width-50"
on:click={disconnect}
toggle:disabled={cannotDisonnect}
>
{translation.disconnect}
</button>
<button
class="primary width-50"
on:click={connect}