mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-07-08 03:51:07 +00:00
feat: store and show pkgbuild (implements #157)
This commit is contained in:
@@ -36,11 +36,11 @@ interface DashboardDialogProps {
|
||||
|
||||
export default function DashboardDialog({ open, onClose }: DashboardDialogProps): React.JSX.Element {
|
||||
const client = useClient();
|
||||
const { current } = useRepository();
|
||||
const { currentRepository } = useRepository();
|
||||
|
||||
const { data: status } = useQuery<InternalStatus>({
|
||||
queryKey: current ? QueryKeys.status(current) : ["status"],
|
||||
queryFn: current ? () => client.fetch.fetchServerStatus(current) : skipToken,
|
||||
queryKey: currentRepository ? QueryKeys.status(currentRepository) : ["status"],
|
||||
queryFn: currentRepository ? () => client.fetch.fetchServerStatus(currentRepository) : skipToken,
|
||||
enabled: open,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user