Skip to content

Commit 7c290f6

Browse files
authored
[Code] hide index button when repo is in indexing (#34904)
1 parent 4357686 commit 7c290f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

x-pack/plugins/code/public/components/admin_page/project_item.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ class CodeProjectItem extends React.PureComponent<{
101101
const settingsVisibility = settingsShow ? 'visible' : 'hidden';
102102

103103
const indexShow =
104-
status && status.state !== RepoState.CLONING && status.state !== RepoState.DELETING;
104+
status &&
105+
status.state !== RepoState.CLONING &&
106+
status.state !== RepoState.DELETING &&
107+
status.state !== RepoState.INDEXING;
105108
const indexVisibility = indexShow ? 'visible' : 'hidden';
106109

107110
const deleteShow = status && status.state !== RepoState.DELETING;

0 commit comments

Comments
 (0)