File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
web/src/components/PendingProjects Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,11 @@ function PendingProjects({
60
60
}
61
61
const syncingProjectsCount = pendingCellIds . filter ( ( cellId ) => {
62
62
const projectInfo = projectStatusInfos [ cellId ]
63
- return projectInfo . hasPeers
63
+ return projectInfo . hasPeers && projectInfo . isGossiping
64
64
} ) . length
65
65
const waitingProjectsCount = pendingCellIds . filter ( ( cellId ) => {
66
66
const projectInfo = projectStatusInfos [ cellId ]
67
- return ! projectInfo . hasPeers
67
+ return ! projectInfo . hasPeers || ! projectInfo . isGossiping
68
68
} ) . length
69
69
70
70
const cancelProjectJoin = async ( appId : string , cellId : string ) => {
@@ -133,11 +133,16 @@ function PendingProjects({
133
133
< div className = "pending-project-phrase" >
134
134
{ pendingProject . passphrase }
135
135
</ div >
136
- { pendingProject . hasPeers && (
136
+ { pendingProject . hasPeers && pendingProject . isGossiping && (
137
137
< div className = "pending-project-status-label peer-found" >
138
138
syncing with found peer
139
139
</ div >
140
140
) }
141
+ { pendingProject . hasPeers && ! pendingProject . isGossiping && (
142
+ < div className = "pending-project-status-label peer-not-found" >
143
+ peer found, not syncing
144
+ </ div >
145
+ ) }
141
146
{ ! pendingProject . hasPeers && (
142
147
< div className = "pending-project-status-label peer-not-found" >
143
148
no peers found
You can’t perform that action at this time.
0 commit comments