Don't show an error in the listing if the server is still installing or suspended

This commit is contained in:
Dane Everitt 2020-04-25 17:58:09 -07:00
parent f45c03a449
commit c4f4f1f5c8
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 18 additions and 5 deletions

View file

@ -30,6 +30,8 @@ export interface Server {
databases: number;
allocations: number;
};
isSuspended: boolean;
isInstalling: boolean;
}
export const rawDataToServerObject = (data: any): Server => ({
@ -50,6 +52,8 @@ export const rawDataToServerObject = (data: any): Server => ({
} ],
limits: { ...data.limits },
featureLimits: { ...data.feature_limits },
isSuspended: data.is_suspended,
isInstalling: data.is_installing,
});
export default (uuid: string): Promise<[ Server, string[] ]> => {