Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI tweaks #11940

Merged
merged 3 commits into from
Jun 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Reload after restart to the baseUrl
  • Loading branch information
NickM-27 committed Jun 13, 2024
commit 90fba2ab70d2d7191829da7b957dd52f935fe77b
5 changes: 3 additions & 2 deletions web/src/components/menu/GeneralSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import {
} from "../ui/dialog";
import { TooltipPortal } from "@radix-ui/react-tooltip";
import { cn } from "@/lib/utils";
import { baseUrl } from "@/api/baseUrl";

type GeneralSettingsProps = {
className?: string;
Expand Down Expand Up @@ -95,12 +96,12 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {

useEffect(() => {
if (countdown === 0) {
window.location.href = "/";
window.location.href = baseUrl;
}
}, [countdown]);

const handleForceReload = () => {
window.location.href = "/";
window.location.href = baseUrl;
};

const Container = isDesktop ? DropdownMenu : Drawer;
Expand Down
Loading