Skip to content

Commit

Permalink
chore: enhance deletion tips by adding cluster info for indices (#162)
Browse files Browse the repository at this point in the history
* chore: enhance deletion tips by adding cluster info for indices

* chore: update release notes
  • Loading branch information
silenceqi authored Feb 21, 2025
1 parent aa67bf7 commit d851be6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/content.en/docs/release-notes/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Information about release notes of INFINI Console is provided here.
- Support viewing logs for cluster, node, index health change events (#150)
- Enhance LDAP authentication logging (#156)
- Optimize UI for copying metric requests (#155)
- Enhance deletion tips by adding cluster info for indices

## 1.28.2 (2025-02-15)

Expand Down
1 change: 1 addition & 0 deletions docs/content.zh/docs/release-notes/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ title: "版本历史"
- 集群,节点,索引健康状态变更支持查看日志 (#150)
- 增强 LDAP 身份验证的日志记录 (#156)
- 优化监控报表里拷贝指标请求的 UI (#155)
- 删除索引提示增加集群信息 (#162)

## 1.28.2 (2025-02-15)

Expand Down
1 change: 1 addition & 0 deletions web/src/pages/DataManagement/Index.js
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ class Index extends PureComponent {
onChangeDeleteIndexConfirmState={this.onChangeDeleteIndexConfirmState}
deleteIndexConfirm={this.state.deleteIndexConfirm}
items={this.state.deleteIndexItems}
selectedCluster={this.props.selectedCluster}
/>
</PageHeaderWrapper>
);
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/DataManagement/components/DeleteIndexModal.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Modal, Checkbox, Tag, Badge, Alert, Icon } from "antd";
import { Modal, Checkbox, Tag, Badge, Alert, Icon, Tooltip } from "antd";
import { useCallback, useState, forwardRef, useMemo } from "react";
import useFetch from "@/lib/hooks/use_fetch";
import request from "@/utils/request";
Expand Down Expand Up @@ -28,7 +28,7 @@ export default (props) => {
onOk={props.onOk}
okButtonProps={{ disabled: !props.deleteIndexConfirm }}
>
<p>You are about to delete these indices:</p>
<p>You are about to delete these indices in cluster <Tooltip title={props.selectedCluster.id}><b>{props.selectedCluster.name}</b></Tooltip>:</p>
<ul style={{ maxHeight: 240, overflow: "scroll" }}>
{props.items.map((item) => {
return (
Expand Down

0 comments on commit d851be6

Please sign in to comment.