From da28644fb76a112e11cae9b5194c0fe9a6a12032 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 19 Jun 2025 10:12:24 +0530 Subject: [PATCH] show a loading indicator --- .../platform/AssistantSelect.tsx | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/gui/src/components/modelSelection/platform/AssistantSelect.tsx b/gui/src/components/modelSelection/platform/AssistantSelect.tsx index ac4a06553..c33f4c707 100644 --- a/gui/src/components/modelSelection/platform/AssistantSelect.tsx +++ b/gui/src/components/modelSelection/platform/AssistantSelect.tsx @@ -279,14 +279,20 @@ export default function AssistantSelect() { style={{ fontSize: fontSize(-3) }} >
-
- -
- - {selectedProfile.title} - + {!loading ? ( + loading... + ) : ( + <> +
+ +
+ + {selectedProfile.title} + + + )}
{ e.stopPropagation(); - refreshProfilesWithLoading().then(() => + void refreshProfilesWithLoading().then(() => buttonRef.current?.click(), ); }} @@ -310,7 +316,7 @@ export default function AssistantSelect() {