mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-07 09:16:15 +02:00
fix(Open WebUI): install status indicator
This commit is contained in:
parent
5afc3a270a
commit
cd7f61c5c0
|
|
@ -3,7 +3,7 @@ import { ServiceSlim } from '../../types/services'
|
||||||
import api from '~/lib/api'
|
import api from '~/lib/api'
|
||||||
|
|
||||||
const useServiceInstalledStatus = (serviceName: string) => {
|
const useServiceInstalledStatus = (serviceName: string) => {
|
||||||
const { data, isFetching } = useQuery<ServiceSlim[]>({
|
const { data, isFetching } = useQuery<ServiceSlim[] | undefined>({
|
||||||
queryKey: ['installed-services'],
|
queryKey: ['installed-services'],
|
||||||
queryFn: () => api.listServices(),
|
queryFn: () => api.listServices(),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import StyledModal from '~/components/StyledModal'
|
||||||
export default function ModelsPage(props: {
|
export default function ModelsPage(props: {
|
||||||
models: { availableModels: NomadOllamaModel[]; installedModels: OllamaModelListing[] }
|
models: { availableModels: NomadOllamaModel[]; installedModels: OllamaModelListing[] }
|
||||||
}) {
|
}) {
|
||||||
const { isInstalled } = useServiceInstalledStatus('nomad_openwebui')
|
const { isInstalled } = useServiceInstalledStatus('nomad_open_webui')
|
||||||
const { addNotification } = useNotifications()
|
const { addNotification } = useNotifications()
|
||||||
const { openModal, closeAllModals } = useModals()
|
const { openModal, closeAllModals } = useModals()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user