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

Various UI enhancements/fixes #8307

Merged
merged 6 commits into from
Dec 5, 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
Next Next commit
Show spinner while shutting down
  • Loading branch information
egbertbouman committed Dec 4, 2024
commit 7e0a68f26ff80efde0aa6769c7a6ab217968252c
5 changes: 3 additions & 2 deletions src/tribler/ui/src/components/layouts/Header.tsx
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ import { useEffect, useRef, useState } from "react";
import toast, { Toaster } from 'react-hot-toast';
import Cookies from "js-cookie";
import { DialogDescription } from "@radix-ui/react-dialog";
import { Ban } from "lucide-react";
import { Ban, Loader } from "lucide-react";
import { useTranslation } from "react-i18next";
import { ScrollArea } from "../ui/scroll-area";

@@ -84,7 +84,8 @@ export function Header() {
}}
>
<DialogHeader>
<DialogTitle className="flex items-center justify-center mb-3"><Ban className="inline mr-3" />
<DialogTitle className="flex items-center justify-center mb-3">
{online ? <Loader className="inline mr-3 animate-[spin_3s_linear_infinite]" /> : <Ban className="inline mr-3" />}
{online
? "Tribler is shutting down"
: (shutdownLogs.length > 0