Apply node maintenance mode to servers (#4421)
This commit is contained in:
parent
4032481a4f
commit
032e4f2e31
11 changed files with 29 additions and 5 deletions
|
@ -19,12 +19,15 @@ const ServerConsoleContainer = () => {
|
|||
const isInstalling = ServerContext.useStoreState((state) => state.server.isInstalling);
|
||||
const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring);
|
||||
const eggFeatures = ServerContext.useStoreState((state) => state.server.data!.eggFeatures, isEqual);
|
||||
const isNodeUnderMaintenance = ServerContext.useStoreState((state) => state.server.data!.isNodeUnderMaintenance);
|
||||
|
||||
return (
|
||||
<ServerContentBlock title={'Console'}>
|
||||
{(isInstalling || isTransferring) && (
|
||||
{(isNodeUnderMaintenance || isInstalling || isTransferring) && (
|
||||
<Alert type={'warning'} className={'mb-4'}>
|
||||
{isInstalling
|
||||
{isNodeUnderMaintenance
|
||||
? 'The node of this server is currently under maintenance and all actions are unavailable.'
|
||||
: isInstalling
|
||||
? 'This server is currently running its installation process and most actions are unavailable.'
|
||||
: 'This server is currently being transferred to another node and all actions are unavailable.'}
|
||||
</Alert>
|
||||
|
|
Reference in a new issue