mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 12:23:44 +02:00
Don't show an error in the listing if the server is still installing or suspended
This commit is contained in:
@@ -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[] ]> => {
|
||||
|
||||
Reference in New Issue
Block a user