1
1
import * as React from "react" ;
2
2
import { Tree , Button } from 'antd' ;
3
3
import type { DataNode , TreeProps } from 'antd/es/tree' ;
4
-
5
- import { throttle } from 'lodash' ;
6
- import classnames from 'classnames' ;
7
4
import useStore , { LogType } from './pendingStore' ;
8
5
import styles from './PendingStatsView.module.css' ;
9
6
import { 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";
13
10
import { CheckSettingsModal } from './CheckSettingsModal' ;
14
11
15
12
export 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 ( ) ;
17
14
const toLocalTouched = getToLocalFileList ( ) ;
18
15
19
16
const toRemoteTouched = getToRemoteFileList ( ) ;
@@ -86,6 +83,9 @@ export const PendingStatsViewComponent = (props: { plugin: InvioPlugin }) => {
86
83
< Cog className = { styles [ 'settings' ] } onClick = { openSettings } />
87
84
</ h4 >
88
85
< 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 >
89
89
{
90
90
treeToLocalData ?. length > 0 ?
91
91
< >
@@ -110,7 +110,9 @@ export const PendingStatsViewComponent = (props: { plugin: InvioPlugin }) => {
110
110
null
111
111
}
112
112
113
- < div className = { styles [ 'subHeader' ] } > Local Changed Files</ div >
113
+ < div className = { styles [ 'subHeader' ] } >
114
+ Local Changed Files
115
+ </ div >
114
116
< Tree
115
117
checkable
116
118
showLine
0 commit comments