feat: update visibility rule for edit button in EinundzwanzigPlebTable

This commit is contained in:
fsociety
2024-09-29 20:42:49 +02:00
parent 64d710c3d6
commit 4c4cef57b1

View File

@@ -158,7 +158,7 @@ final class EinundzwanzigPlebTable extends PowerGridComponent
return [
// Hide button edit for ID 1
Rule::button('edit')
->when(fn($row) => false)
->when(fn($row) => $row->application_for === null)
->hide(),
];
}