11import * as React from "react" ;
22import { Tree , Button } from 'antd' ;
33import type { DataNode , TreeProps } from 'antd/es/tree' ;
4-
5- import { throttle } from 'lodash' ;
6- import classnames from 'classnames' ;
74import useStore , { LogType } from './pendingStore' ;
85import styles from './PendingStatsView.module.css' ;
96import { AlertTriangle , CheckCircle , ArrowDownUp , Activity , LineChart , Cog , Siren , FileType , ScrollText , Info , AlertCircle , XCircle , ChevronRight , Terminal , RedoDot , UploadCloud , DownloadCloud } from 'lucide-react' ;
@@ -13,7 +10,7 @@ import InvioPlugin from "src/main";
1310import { CheckSettingsModal } from './CheckSettingsModal' ;
1411
1512export const PendingStatsViewComponent = ( props : { plugin : InvioPlugin } ) => {
16- const { record , toLocalSelected , toRemoteSelected , getToLocalFileList, getToRemoteFileList, getAllCheckedFileList, existToLocalFile, existToRemoteFile, updateSelectedToLocalFileList, updateSelectedToRemoteFileList } = useStore ( ) ;
13+ const { getToLocalFileList, getToRemoteFileList, getAllCheckedFileList, existToLocalFile, existToRemoteFile, updateSelectedToLocalFileList, updateSelectedToRemoteFileList } = useStore ( ) ;
1714 const toLocalTouched = getToLocalFileList ( ) ;
1815
1916 const toRemoteTouched = getToRemoteFileList ( ) ;
@@ -86,6 +83,9 @@ export const PendingStatsViewComponent = (props: { plugin: InvioPlugin }) => {
8683 < Cog className = { styles [ 'settings' ] } onClick = { openSettings } />
8784 </ h4 >
8885 < div className = { styles [ 'scrollContainer' ] } >
86+ < div className = { styles [ 'extraAction' ] } >
87+ < div className = { styles [ 'btn' ] } onClick = { ( ) => { props . plugin . pendingView ( ) } } > < ArrowDownUp className = { styles [ 'icon' ] } /> Refresh</ div >
88+ </ div >
8989 {
9090 treeToLocalData ?. length > 0 ?
9191 < >
@@ -110,7 +110,9 @@ export const PendingStatsViewComponent = (props: { plugin: InvioPlugin }) => {
110110 null
111111 }
112112
113- < div className = { styles [ 'subHeader' ] } > Local Changed Files</ div >
113+ < div className = { styles [ 'subHeader' ] } >
114+ Local Changed Files
115+ </ div >
114116 < Tree
115117 checkable
116118 showLine
0 commit comments