Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Dec 6, 2023
1 parent c278985 commit 4e7d29d
Show file tree
Hide file tree
Showing 147 changed files with 1,025 additions and 1,022 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function update(Request $request, ThemeSettings $themeSettings)
'home_hero_fg_image_light' => ['sometimes', 'nullable', 'mimes:jpg,jpeg,png,bmp,gif,svg,webp', 'max:1024'],
'home_hero_fg_image_dark' => ['sometimes', 'nullable', 'mimes:jpg,jpeg,png,bmp,gif,svg,webp', 'max:1024'],
'loading_gif' => ['sometimes', 'nullable', 'mimes:gif,svg', 'max:1024'],
'remove_loading_gif' => ['sometimes', 'nullable', 'boolean'],
]);

$themeSettings->color_mode = $request->color_mode;
Expand Down Expand Up @@ -107,7 +108,7 @@ public function update(Request $request, ThemeSettings $themeSettings)
'public', $request->file('loading_gif'), 'loading_gif.'.$request->file('loading_gif')->getClientOriginalExtension()
);
$themeSettings->loading_gif = Storage::url($path).'?hash='.\Str::random(8);
} elseif ($request->input('loading_gif') === null) {
} elseif ($request->remove_loading_gif) {
$themeSettings->loading_gif = null;
}

Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4e7d29d

Please sign in to comment.