Skip to content

Commit

Permalink
fix: disable old
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Feb 6, 2025
1 parent 3443089 commit 64cd640
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/UI/resources/views/fields/stack.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@props([
'fields' => [],
])
<x-moonshine::fields-group
:components="$fields"
/>
<div class="space-elements">
<x-moonshine::fields-group
:components="$fields"
/>
</div>
2 changes: 2 additions & 0 deletions src/UI/src/Fields/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class File extends Field implements FileableContract, RemovableContract

protected string $view = 'moonshine::fields.file';

protected bool $hasOld = false;

protected string $type = 'file';

protected string $accept = '*/*';
Expand Down
2 changes: 2 additions & 0 deletions src/UI/src/Fields/Hidden.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class Hidden extends Field implements HasDefaultValueContract, CanBeString

protected string $type = 'hidden';

protected bool $hasOld = false;

protected bool $showValue = false;

protected bool $columnSelection = false;
Expand Down
2 changes: 2 additions & 0 deletions src/UI/src/Fields/HiddenIds.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class HiddenIds extends Field
{
protected string $view = 'moonshine::fields.hidden-ids';

protected bool $hasOld = false;

protected string $type = 'hidden';

public function __construct(
Expand Down
2 changes: 2 additions & 0 deletions src/UI/src/Fields/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Password extends Text
{
protected string $type = 'password';

protected bool $hasOld = false;

protected function resolvePreview(): string
{
return '***';
Expand Down
2 changes: 2 additions & 0 deletions src/UI/src/Fields/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class Template extends Field implements HasFieldsContract
{
use WithFields;

protected bool $hasOld = false;

protected function prepareFields(): FieldsContract
{
return tap(
Expand Down

0 comments on commit 64cd640

Please sign in to comment.