Skip to content

Commit 61af217

Browse files
committed
wip feat: add tooltips for sync button
1 parent a4bd3e3 commit 61af217

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/components/ModelTable.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
ModalBody,
99
ModalFooter,
1010
useDisclosure,
11+
Tooltip,
1112
} from '@heroui/react';
1213
import { Table, TableHeader, TableBody, TableColumn, TableRow, TableCell } from '@heroui/table';
1314
import { semanticColors } from '@heroui/theme';
@@ -237,9 +238,11 @@ function ModelTable({ providerConfig, onModelsChange, showSyncedButton = false }
237238
{t('settings.providers.newModel')}
238239
</Button>
239240
{showSyncedButton && (
240-
<Button isIconOnly isLoading={discovering} isDisabled={discovering} onPress={handleDiscover}>
241-
<Icon icon="cloud" />
242-
</Button>
241+
<Tooltip content={t('settings.providers.syncModels')} delay={500}>
242+
<Button isIconOnly isLoading={discovering} isDisabled={discovering} onPress={handleDiscover}>
243+
<Icon icon="cloud" />
244+
</Button>
245+
</Tooltip>
243246
)}
244247
</div>
245248
</div>

src/i18n/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"editModel": "Edit model",
4141
"deleteModel": "Delete model",
4242
"deleteModelConfirm": "Are you sure you want to delete <b>{{modelName}}</b>?",
43+
"syncModels": "Sync models",
4344
"name": "Name",
4445
"actions": "Actions"
4546
},

0 commit comments

Comments
 (0)