Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

REV-11882#66

Merged
BadChoice merged 2 commits intomasterfrom
feature/REV-11882
Jun 28, 2023
Merged

REV-11882#66
BadChoice merged 2 commits intomasterfrom
feature/REV-11882

Conversation

@MartiSalaMorral
Copy link

Added context to child resoruce's edit
Added displayWhileSearching property to field
https://linear.app/revo/issue/REV-11882/versio-thurst

Added context to child resoruce's edit
Added displayWhileSearching property to field
@linear
Copy link

linear bot commented Jun 22, 2023

REV-11882 Versió thurst

<div class="configForm">
<h2> {{ $object->{$nameField} ?? __('thrust::messages.new') }}</h2>
<h2>
@forEach(explode('/', $objectName ?: __('thrust::messages.new')) as $pathComponent)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

posem-ho dins d'un @include('breadcums')

src/Resource.php Outdated

public function editTitle(mixed $object): ?string
{
return $object->{$this->nameField};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

editTitle Sembla una accio, li podriem canviar per
titleAtEdit() : string

{
return $this->resource->fieldsFlattened()->filter(function($field){
return $field->showInIndex;// && $this->resource->can($field->policyAction);
return $field->showInIndex || request('search') && $field->showWhileSearching;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

posem el or i && junts per veure més clar que van junts (i en una linia a sota)

Copy link
Author

@MartiSalaMorral MartiSalaMorral Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No entec la proposta. Vols dir així?
return $field->showInIndex
|| request('search') && $field->showWhileSearching;


public $showInIndex = true;
public $showInEdit = true;
public $showWhileSearching = false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jo mantindria la coherencia, showInSearch

@BadChoice BadChoice merged commit c0b7def into master Jun 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants