Skip to content

Commit

Permalink
chore: add delete button for scheduled backups
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Sep 1, 2023
1 parent e4a1f3d commit 5859ba4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/src/pages/Backups/ScheduledBackups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react'
import { usePollingEffect } from '../../utils/usePollingEffect'
import { ColumnType } from 'antd/es/table'
import { Switch, Select, Table, Button, Form, Input, Modal, Tag, Col, Progress, Row, Tooltip, notification } from 'antd'
import DeleteOutlined from '@ant-design/icons'
import { Clusters } from '../Clusters/Clusters'

interface ScheduleRow {
Expand Down Expand Up @@ -133,6 +134,15 @@ export default function ScheduledBackups() {
{ title: 'Bucket', dataIndex: 'bucket' },
{ title: 'Path', dataIndex: 'path' },
{ title: 'Created At', dataIndex: 'created_at' },
{
title: 'Delete',
dataIndex: 'id',
render: id => (
<a onClick={() => console.log(id)}>
<DeleteOutlined />
</a>
),
},
]

usePollingEffect(
Expand Down

0 comments on commit 5859ba4

Please sign in to comment.