mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-11 14:10:15 -07:00
Models Loading progress
This commit is contained in:
@@ -11,7 +11,9 @@ import type { ToggleableBoolean } from '~/common/util/useToggleableBoolean';
|
||||
*/
|
||||
export function SetupFormRefetchButton(props: {
|
||||
refetch: () => void,
|
||||
disabled: boolean, error: boolean,
|
||||
disabled: boolean,
|
||||
loading: boolean,
|
||||
error: boolean,
|
||||
leftButton?: React.ReactNode,
|
||||
advanced?: ToggleableBoolean
|
||||
}) {
|
||||
@@ -29,6 +31,7 @@ export function SetupFormRefetchButton(props: {
|
||||
<Button
|
||||
color={props.error ? 'warning' : 'primary'}
|
||||
disabled={props.disabled}
|
||||
loading={props.loading}
|
||||
endDecorator={<SyncIcon />}
|
||||
onClick={props.refetch}
|
||||
sx={{ minWidth: 120, ml: 'auto' }}
|
||||
|
||||
Reference in New Issue
Block a user