mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 23:08:37 +02:00
Fix finish & add translation for Installer title (#1659)
This commit is contained in:
parent
6671d45651
commit
079eaed010
@ -404,7 +404,7 @@ class CreateNode extends CreateRecord
|
||||
type="submit"
|
||||
size="sm"
|
||||
>
|
||||
Create Node
|
||||
{{ trans('admin/node.create') }}
|
||||
</x-filament::button>
|
||||
BLADE))),
|
||||
]);
|
||||
|
@ -777,7 +777,7 @@ class CreateServer extends CreateRecord
|
||||
type="submit"
|
||||
size="sm"
|
||||
>
|
||||
Create Server
|
||||
{{ trans('admin/server.create') }}
|
||||
</x-filament::button>
|
||||
BLADE))),
|
||||
]);
|
||||
|
@ -46,6 +46,11 @@ class PanelInstaller extends SimplePage implements HasForms
|
||||
|
||||
protected static string $view = 'filament.pages.installer';
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return trans('installer.title');
|
||||
}
|
||||
|
||||
public function getMaxWidth(): MaxWidth|string
|
||||
{
|
||||
return MaxWidth::SevenExtraLarge;
|
||||
@ -79,14 +84,18 @@ class PanelInstaller extends SimplePage implements HasForms
|
||||
SessionStep::make(),
|
||||
])
|
||||
->persistStepInQueryString()
|
||||
->nextAction(fn (Action $action) => $action->keyBindings('enter'))
|
||||
->nextAction(function (Action $action) {
|
||||
$action
|
||||
->label(trans('installer.next_step'))
|
||||
->keyBindings('enter');
|
||||
})
|
||||
->submitAction(new HtmlString(Blade::render(<<<'BLADE'
|
||||
<x-filament::button
|
||||
type="submit"
|
||||
size="sm"
|
||||
wire:loading.attr="disabled"
|
||||
>
|
||||
trans('installer.finish')
|
||||
{{ trans('installer.finish') }}
|
||||
<span wire:loading><x-filament::loading-indicator class="h-4 w-4" /></span>
|
||||
</x-filament::button>
|
||||
BLADE))),
|
||||
|
@ -4,6 +4,7 @@ return [
|
||||
'nav_title' => 'Nodes',
|
||||
'model_label' => 'Node',
|
||||
'model_label_plural' => 'Nodes',
|
||||
'create' => 'Create Node',
|
||||
'tabs' => [
|
||||
'overview' => 'Overview',
|
||||
'basic_settings' => 'Basic Settings',
|
||||
|
@ -5,6 +5,7 @@ return [
|
||||
'model_label' => 'Server',
|
||||
'model_label_plural' => 'Servers',
|
||||
'no_servers' => 'No Servers',
|
||||
'create' => 'Create Server',
|
||||
'next_step' => 'Next Step',
|
||||
'ip_address' => 'IP Address',
|
||||
'ip_address_helper' => 'Usually your machine\'s public IP unless you are port forwarding.',
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'title' => 'Panel Installer',
|
||||
'requirements' => [
|
||||
'title' => 'Server Requirements',
|
||||
'sections' => [
|
||||
@ -97,5 +98,6 @@ return [
|
||||
'migration' => 'Could not run migrations',
|
||||
'create_user' => 'Could not create admin user',
|
||||
],
|
||||
'next_step' => 'Next Step',
|
||||
'finish' => 'Finish',
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user