1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 17:12:30 +01:00

Oops, also include the server status

This commit is contained in:
Dane Everitt 2020-10-03 19:37:36 -07:00
parent 6b52a36b31
commit 57457f0e9c
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -15,6 +15,7 @@ interface Stats {
const ServerDetailsBlock = () => {
const [ stats, setStats ] = useState<Stats>({ memory: 0, cpu: 0, disk: 0 });
const status = ServerContext.useStoreState(state => state.status.value);
const connected = ServerContext.useStoreState(state => state.socket.connected);
const instance = ServerContext.useStoreState(state => state.socket.instance);