Quellcode durchsuchen

refactor: invoice preview color and font update logic

3.x
wallo vor 2 Jahren
Ursprung
Commit
c51bfc3b33
1 geänderte Dateien mit 0 neuen und 14 gelöschten Zeilen
  1. 0
    14
      app/Filament/Company/Pages/Setting/Appearance.php

+ 0
- 14
app/Filament/Company/Pages/Setting/Appearance.php Datei anzeigen

@@ -228,20 +228,6 @@ class Appearance extends Page
228 228
             }
229 229
         }
230 230
 
231
-        // If the primary color or font has changed, we need to update the associated models accent_color column.
232
-        if (array_key_exists('primary_color', $diff) || array_key_exists('font', $diff)) {
233
-            $primaryColorToHex = PrimaryColor::from($data['primary_color'])->getHexCode();
234
-            $font = Font::from($data['font'])->value;
235
-            $this->record->company->defaultBill()->update([
236
-                'accent_color' => $primaryColorToHex,
237
-                'font' => $font,
238
-            ]);
239
-            $this->record->company->defaultInvoice()->update([
240
-                'accent_color' => $primaryColorToHex,
241
-                'font' => $font,
242
-            ]);
243
-        }
244
-
245 231
         $record->update($data);
246 232
 
247 233
         return $record;

Laden…
Abbrechen
Speichern