From 73566e3907d2e7c01080a48a2172c5fb2de8dfc9 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Sun, 7 Jan 2024 19:48:35 +0700 Subject: [PATCH] fix copy on shortcut view --- web/containers/Layout/BottomBar/index.tsx | 14 ++++++++++---- web/containers/Shortcut/index.tsx | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/web/containers/Layout/BottomBar/index.tsx b/web/containers/Layout/BottomBar/index.tsx index f5e817a1b..dfd1b324d 100644 --- a/web/containers/Layout/BottomBar/index.tsx +++ b/web/containers/Layout/BottomBar/index.tsx @@ -68,7 +68,7 @@ const BottomBar = () => { className="cursor-pointer rounded-md border-none font-medium" onClick={() => setShowSelectModelModal((show) => !show)} > - My Models  + My Models @@ -86,9 +86,15 @@ const BottomBar = () => { value={stateModel.model || '-'} /> )} - {!stateModel.loading && downloadedModels.length !== 0 && ( - - )} + {!stateModel.loading && + downloadedModels.length !== 0 && + activeModel?.id && ( + + )} {downloadedModels.length === 0 && !stateModel.loading && downloadStates.length === 0 && ( diff --git a/web/containers/Shortcut/index.tsx b/web/containers/Shortcut/index.tsx index 1e6d7a81a..6153f48a7 100644 --- a/web/containers/Shortcut/index.tsx +++ b/web/containers/Shortcut/index.tsx @@ -4,7 +4,7 @@ export default function ShortCut(props: { menu: string }) { return (
-

{symbol + ' + ' + menu}

+

{symbol + menu}

) }