Nächster Schritt sofort sichtbar, Saisonkopie ohne Preislücke
Deploy FeWo mit PipelineManager / deploy (push) Successful in 4m34s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 4m34s
- Vorgang: Die Kopfaktionen werden nach jeder Aktion neu aufgebaut, damit der große Schalter gleich den nächsten Schritt zeigt (Filament baut sie vor der Aktion auf). - In Folgejahr kopieren: Reicht eine bestehende Saison (z. B. Neujahr über den Jahreswechsel) nur über Beginn oder Ende der Kopie, wird die Kopie dort gekürzt statt ganz übersprungen; sonst blieb z. B. Januar bis März ohne Preis. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
150a64e100
commit
2d2ffffa33
6 files changed
+90
-6
No files matched your search
@@ -97,6 +97,24 @@ public function getSubheading(): string|Htmlable|null
|
||||
return CaseActivities::situation($this->record);
|
||||
}
|
||||
|
||||
/**
|
||||
* Filament builds the header actions before an action runs; rebuild them afterwards so the large button already
|
||||
* shows the next step instead of the one just done.
|
||||
*/
|
||||
protected function afterActionCalled(Action $action): void
|
||||
{
|
||||
parent::afterActionCalled($action);
|
||||
|
||||
$fresh = $this->record->exists ? $this->record->fresh() : null;
|
||||
if ($fresh === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->record = $fresh;
|
||||
$this->cachedHeaderActions = [];
|
||||
$this->cacheInteractsWithHeaderActions();
|
||||
}
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
$actions = collect([
|
||||
|
||||
Reference in new issue
Block a user