This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch ui
in repository https://gitbox.apache.org/repos/asf/polaris-tools.git


The following commit(s) were added to refs/heads/ui by this push:
     new 9b382da  Add popconfirm on delete catalog
9b382da is described below

commit 9b382da770f384a32ee085a6817c9801ac1fff05
Author: JB Onofré <[email protected]>
AuthorDate: Mon Oct 27 07:47:36 2025 +0100

    Add popconfirm on delete catalog
---
 ui/src/home.tsx | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/ui/src/home.tsx b/ui/src/home.tsx
index 4568650..31a41db 100644
--- a/ui/src/home.tsx
+++ b/ui/src/home.tsx
@@ -18,7 +18,7 @@
 */
 import { useState, useEffect } from 'react';
 import { Link } from 'react-router-dom';
-import { Breadcrumb, Card, Row, Col, Space, Button, Table, Spin, message } 
from 'antd';
+import { Breadcrumb, Card, Row, Col, Space, Button, Table, Spin, Popconfirm, 
message } from 'antd';
 import { HomeOutlined, EditOutlined, DeleteOutlined } from '@ant-design/icons';
 
 export default function Home(props) {
@@ -65,7 +65,12 @@ export default function Home(props) {
             render: (_,record) => (
                 <Space>
                     <Button><EditOutlined/></Button>
-                    <Button><DeleteOutlined onClick={() => 
deleteCatalog(record.name)}/></Button>
+                    <Popconfirm title="Delete Catalog"
+                        description="Are you sure you want to delete catalog ?"
+                        onConfirm={() => deleteCatalog(record.name)}
+                        okText="Yes" cancelText="No">
+                        <Button danger icon={<DeleteOutlined/>} />
+                    </Popconfirm>
                 </Space>
             )
         }

Reply via email to