diff --git a/gui/src/pages/config/AccountButton.tsx b/gui/src/pages/config/AccountButton.tsx index 06c6beba0..a5c59f889 100644 --- a/gui/src/pages/config/AccountButton.tsx +++ b/gui/src/pages/config/AccountButton.tsx @@ -1,3 +1,4 @@ +import { ArrowPathIcon } from "@heroicons/react/24/outline"; import { UserCircleIcon } from "@heroicons/react/24/solid"; import { isOnPremSession } from "core/control-plane/AuthTypes"; import { @@ -10,11 +11,13 @@ import { Button } from "../../components/ui/Button"; import { useAuth } from "../../context/Auth"; import { selectCurrentOrg } from "../../redux"; import { useAppSelector } from "../../redux/hooks"; +import { cn } from "../../util/cn"; import { ScopeSelect } from "./ScopeSelect"; export function AccountButton() { - const { session, logout, login, organizations } = useAuth(); + const { session, logout, login, organizations, refreshProfiles } = useAuth(); const selectedOrg = useAppSelector(selectCurrentOrg); + const configLoading = useAppSelector((store) => store.config.loading); if (!session) { return ( @@ -58,9 +61,25 @@ export function AccountButton() { {organizations.length > 0 && (