mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Fix views inconsistencies
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user