This commit is contained in:
@@ -31,13 +31,19 @@ export function VMStatusWidget(p: {
|
||||
}
|
||||
};
|
||||
|
||||
const changedAction = () => { setState(undefined); };
|
||||
const changedAction = () => {
|
||||
setState(undefined);
|
||||
};
|
||||
|
||||
React.useEffect(() => {
|
||||
refresh();
|
||||
const i = setInterval(() => refresh(), 3000);
|
||||
const i = setInterval(() => {
|
||||
refresh();
|
||||
}, 3000);
|
||||
|
||||
return () => { clearInterval(i); };
|
||||
return () => {
|
||||
clearInterval(i);
|
||||
};
|
||||
});
|
||||
|
||||
if (state === undefined)
|
||||
@@ -59,6 +65,7 @@ export function VMStatusWidget(p: {
|
||||
icon={<PersonalVideoIcon />}
|
||||
tooltip="Graphical remote control over the VM"
|
||||
performAction={async () => navigate(p.vm.VNCURL)}
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
onExecuted={() => {}}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user