modify alert bug
This commit is contained in:
parent
13ce75d197
commit
e01c081ed1
|
@ -68,7 +68,7 @@ export const RequestStatusBar: FunctionComponent<Props> = ({
|
|||
let content: React.ReactNode = null;
|
||||
const clusterContent = (<EuiFlexItem grow={false} style={{marginRight:'auto'}}>
|
||||
<EuiBadge>
|
||||
{selectedCluster.endpoint} - {selectedCluster.version}
|
||||
{selectedCluster.host} - {selectedCluster.version}
|
||||
</EuiBadge>
|
||||
</EuiFlexItem>);
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ export default {
|
|||
name: item.name,
|
||||
id: item.id,
|
||||
endpoint: item.endpoint,
|
||||
host: item.host,
|
||||
version: item.version,
|
||||
};
|
||||
})
|
||||
|
@ -131,10 +132,10 @@ export default {
|
|||
if(pathname && global.selectedClusterID){
|
||||
const newPart = `/elasticsearch/${global.selectedClusterID}/`;
|
||||
if(!pathname.includes('elasticsearch')){
|
||||
history.replace(pathname+newPart+search)
|
||||
history.replace(pathname+newPart+ (search || ''))
|
||||
}else{
|
||||
const newPath = pathname.replace(/\/elasticsearch\/(\w+)\/?/, newPart);
|
||||
history.replace(newPath+search)
|
||||
history.replace(newPath+(search || ''))
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -93,8 +93,8 @@ class Index extends React.Component {
|
|||
}
|
||||
},{
|
||||
title: '集群地址',
|
||||
dataIndex: 'endpoint',
|
||||
key: 'endpoint',
|
||||
dataIndex: 'host',
|
||||
key: 'host',
|
||||
},
|
||||
{
|
||||
title: '监控启用状态',
|
||||
|
|
Loading…
Reference in New Issue