Fix views inconsistencies

This commit is contained in:
DariusIII
2026-08-09 14:37:39 +02:00
parent 73e5294132
commit f1912e5e74
117 changed files with 3587 additions and 3384 deletions
@@ -181,6 +181,11 @@ class ProfileController extends BasePageController
}
}
// Keep the composer's cached per-user data in sync with theme changes
if ($request->hasAny(['theme_preference', 'color_scheme'])) {
Cache::forget('composer_user_'.$userid);
}
// Update timezone preference
if ($request->has('timezone')) {
$timezoneValue = $request->input('timezone');
@@ -305,6 +310,9 @@ class ProfileController extends BasePageController
}
$user->save();
// Keep the composer's cached per-user data in sync with theme changes
Cache::forget('composer_user_'.$user->id);
return response()->json([
'success' => true,
'theme_preference' => $user->theme_preference,