QuickStatus: Hinweistext beim Wechsel auf Auto beibehalten.
Gespeicherte Headline und Subtext bleiben erhalten und stehen beim erneuten Umschalten auf Hinweis wieder zur Verfügung. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
7491d20d39
commit
2a34adc515
2 changed files with 20 additions and 10 deletions
|
|
@ -92,13 +92,6 @@ class QuickStatus extends Component
|
|||
'noticeSubtext.max' => 'Subtext max. 80 Zeichen.',
|
||||
]);
|
||||
|
||||
$showsNotice = in_array($this->storeStatus, ['notice', 'warning'], true);
|
||||
|
||||
if (! $showsNotice) {
|
||||
$this->noticeHeadline = '';
|
||||
$this->noticeSubtext = '';
|
||||
}
|
||||
|
||||
CabinetTabletSetting::current()->update([
|
||||
'store_status' => $this->storeStatus,
|
||||
'notice_headline' => $this->noticeHeadline ?: null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue