Skip to content

Commit

Permalink
fix: 修复弹窗确认按钮问题
Browse files Browse the repository at this point in the history
  • Loading branch information
besscroft committed Nov 15, 2024
1 parent bb8a577 commit 5141e3d
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions components/admin/list/ListProps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,16 +287,14 @@ export default function ListProps(props : Readonly<ImageServerHandleProps>) {
<AlertDialogCancel onClick={() => {
setImage({} as ImageType)
setImageAlbum('')
}}>Cancel</AlertDialogCancel>
<AlertDialogAction>
<Button
disabled={updateImageAlbumLoading}
onClick={() => updateImageAlbum()}
aria-label="更新"
>
{updateImageAlbumLoading && <ReloadIcon className="mr-2 h-4 w-4 animate-spin"/>}
更新
</Button>
}}>取消</AlertDialogCancel>
<AlertDialogAction
disabled={updateImageAlbumLoading}
onClick={() => updateImageAlbum()}
aria-label="更新"
>
{updateImageAlbumLoading && <ReloadIcon className="mr-2 h-4 w-4 animate-spin"/>}
更新
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
Expand Down

0 comments on commit 5141e3d

Please sign in to comment.