mirror of
https://github.com/pelican-dev/panel.git
synced 2025-07-03 10:51:08 +02:00
Merge branch '1.0-develop' into develop
This commit is contained in:
commit
62238ad418
@ -1,6 +1,6 @@
|
|||||||
[](https://pterodactyl.io)
|
[](https://pterodactyl.io)
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
@ -57,7 +57,7 @@ class EmailSettingsCommand extends Command
|
|||||||
$this->{$method}();
|
$this->{$method}();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->variables['MAIL_FROM'] = $this->option('email') ?? $this->ask(
|
$this->variables['MAIL_FROM_ADDRESS'] = $this->option('email') ?? $this->ask(
|
||||||
trans('command/messages.environment.mail.ask_mail_from'),
|
trans('command/messages.environment.mail.ask_mail_from'),
|
||||||
$this->config->get('mail.from.address')
|
$this->config->get('mail.from.address')
|
||||||
);
|
);
|
||||||
|
@ -6,6 +6,7 @@ use Illuminate\Support\Arr;
|
|||||||
use Webmozart\Assert\Assert;
|
use Webmozart\Assert\Assert;
|
||||||
use Pterodactyl\Models\Server;
|
use Pterodactyl\Models\Server;
|
||||||
use Psr\Http\Message\ResponseInterface;
|
use Psr\Http\Message\ResponseInterface;
|
||||||
|
use GuzzleHttp\Exception\ClientException;
|
||||||
use GuzzleHttp\Exception\TransferException;
|
use GuzzleHttp\Exception\TransferException;
|
||||||
use Pterodactyl\Exceptions\Http\Server\FileSizeTooLargeException;
|
use Pterodactyl\Exceptions\Http\Server\FileSizeTooLargeException;
|
||||||
use Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException;
|
use Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException;
|
||||||
@ -32,7 +33,7 @@ class DaemonFileRepository extends DaemonRepository
|
|||||||
'query' => ['file' => $path],
|
'query' => ['file' => $path],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
} catch (TransferException $exception) {
|
} catch (ClientException|TransferException $exception) {
|
||||||
throw new DaemonConnectionException($exception);
|
throw new DaemonConnectionException($exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
8
resources/scripts/api/server/types.d.ts
vendored
8
resources/scripts/api/server/types.d.ts
vendored
@ -1,4 +1,10 @@
|
|||||||
export type ServerStatus = 'installing' | 'install_failed' | 'suspended' | 'restoring_backup' | null;
|
export type ServerStatus =
|
||||||
|
| 'installing'
|
||||||
|
| 'install_failed'
|
||||||
|
| 'reinstall_failed'
|
||||||
|
| 'suspended'
|
||||||
|
| 'restoring_backup'
|
||||||
|
| null;
|
||||||
|
|
||||||
export interface ServerBackup {
|
export interface ServerBackup {
|
||||||
uuid: string;
|
uuid: string;
|
||||||
|
@ -11,7 +11,7 @@ export default () => {
|
|||||||
state => state.server.data?.isNodeUnderMaintenance || false,
|
state => state.server.data?.isNodeUnderMaintenance || false,
|
||||||
);
|
);
|
||||||
|
|
||||||
return status === 'installing' || status === 'install_failed' ? (
|
return status === 'installing' || status === 'install_failed' || status === 'reinstall_failed' ? (
|
||||||
<ScreenBlock
|
<ScreenBlock
|
||||||
title={'Running Installer'}
|
title={'Running Installer'}
|
||||||
image={ServerInstallSvg}
|
image={ServerInstallSvg}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user