mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
RemoteStatusLight no longer used. It's replaced by Status component.
This commit is contained in:
parent
434f980b49
commit
c9a73c2204
File diff suppressed because it is too large
Load Diff
@ -1,29 +0,0 @@
|
||||
import * as React from "react";
|
||||
import * as mobxReact from "mobx-react";
|
||||
import { RemoteType } from "../../../types/types";
|
||||
|
||||
import { ReactComponent as CircleIcon } from "../../assets/icons/circle.svg";
|
||||
import { ReactComponent as KeyIcon } from "../../assets/icons/key.svg";
|
||||
import { ReactComponent as RotateIcon } from "../../assets/icons/rotate_left.svg";
|
||||
|
||||
import "./remotestatuslight.less";
|
||||
|
||||
@mobxReact.observer
|
||||
class RemoteStatusLight extends React.Component<{ remote: RemoteType }, {}> {
|
||||
render() {
|
||||
let remote = this.props.remote;
|
||||
let status = "error";
|
||||
let wfp = false;
|
||||
if (remote != null) {
|
||||
status = remote.status;
|
||||
wfp = remote.waitingforpassword;
|
||||
}
|
||||
if (status == "connecting") {
|
||||
if (wfp) return <KeyIcon className={`remote-status status-${status}`} />;
|
||||
else return <RotateIcon className={`remote-status status-${status}`} />;
|
||||
}
|
||||
return <CircleIcon className={`remote-status status-${status}`} />;
|
||||
}
|
||||
}
|
||||
|
||||
export { RemoteStatusLight };
|
Loading…
Reference in New Issue
Block a user