@@ -21,6 +21,8 @@ class ServerResourcePage extends ServerFormPage
2121{
2222 protected static string |\BackedEnum |null $ navigationIcon = 'tabler-cube-plus ' ;
2323
24+ protected static ?int $ navigationSort = 20 ;
25+
2426 protected static ?string $ navigationLabel = 'Resource Limits ' ;
2527
2628 protected static ?string $ title = 'Resource Limits ' ;
@@ -41,14 +43,11 @@ public static function canAccess(): bool
4143 return parent ::canAccess ();
4244 }
4345
44- protected static ?int $ navigationSort = 20 ;
45-
4646 public function form (Schema $ schema ): Schema
4747 {
4848 /** @var Server $server */
4949 $ server = Filament::getTenant ();
5050
51- /** @var UserResourceLimits $userResourceLimits */
5251 $ userResourceLimits = UserResourceLimits::where ('user_id ' , $ server ->owner_id )->firstOrFail ();
5352
5453 $ maxCpu = $ server ->cpu + $ userResourceLimits ->getCpuLeft ();
@@ -57,7 +56,7 @@ public function form(Schema $schema): Schema
5756
5857 $ suffix = config ('panel.use_binary_prefix ' ) ? 'MiB ' : 'MB ' ;
5958
60- return $ schema
59+ return parent :: form ( $ schema)
6160 ->columns ([
6261 'default ' => 1 ,
6362 'lg ' => 3 ,
@@ -111,7 +110,7 @@ protected function getHeaderActions(): array
111110 return [
112111 Action::make ('save ' )
113112 ->label (trans ('filament-panels::resources/pages/edit-record.form.actions.save.label ' ))
114- ->submit ('save ' )
113+ ->action ('save ' )
115114 ->formId ('form ' )
116115 ->keyBindings (['mod+s ' ]),
117116 Action::make ('delete_server ' )
0 commit comments