Disable buttons when not fully connected to instance

This commit is contained in:
Dane Everitt 2020-09-11 23:18:01 -07:00
parent 1c00c3b234
commit 74767ed6a2
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 5 additions and 4 deletions

View file

@ -8,7 +8,7 @@ import schedules, { ServerScheduleStore } from '@/state/server/schedules';
import databases, { ServerDatabaseStore } from '@/state/server/databases';
import isEqual from 'react-fast-compare';
export type ServerStatus = 'offline' | 'starting' | 'stopping' | 'running';
export type ServerStatus = 'offline' | 'starting' | 'stopping' | 'running' | null;
interface ServerDataStore {
data?: Server;
@ -56,7 +56,7 @@ interface ServerStatusStore {
}
const status: ServerStatusStore = {
value: 'offline',
value: null,
setServerStatus: action((state, payload) => {
state.value = payload;
}),