Add start-stop button to instance list

This commit is contained in:
Hornwitser committed 2022-03-25 23:15:07 +01:00
1 parent 1e4d709a06
commit e5a63a3508
2 files changed
+18 -4

No files matched your search

@@ -11,7 +11,8 @@ export default function StartStopInstanceButton(props) {
let control = useContext(ControlContext);
let [switching, setSwitching] = useState(false);
function onClick() {
function onClick(event) {
event.stopPropagation();
setSwitching(true);
let action;
if (props.instance["status"] === "stopped") {