Do not display ID column in tickscripts table

pull/2831/head
Alex P 2018-02-23 09:34:56 -08:00
parent 171e18117e
commit ec8048cfcd
2 changed files with 3 additions and 8 deletions

View File

@ -5,14 +5,13 @@ import _ from 'lodash'
import ConfirmButton from 'src/shared/components/ConfirmButton'
import {TASKS_TABLE} from 'src/kapacitor/constants/tableSizing'
const {colID, colName, colType, colEnabled, colActions} = TASKS_TABLE
const {colName, colType, colEnabled, colActions} = TASKS_TABLE
const TasksTable = ({tasks, source, onDelete, onChangeRuleStatus}) =>
<div className="panel-body">
<table className="table v-center table-highlight">
<thead>
<tr>
<th style={{minWidth: colID}}>ID</th>
<th style={{minWidth: colName}}>Name</th>
<th style={{width: colType}}>Type</th>
<th style={{width: colEnabled}} className="text-center">
@ -41,17 +40,14 @@ const handleDelete = (task, onDelete) => onDelete(task)
const TaskRow = ({task, source, onDelete, onChangeRuleStatus}) =>
<tr key={task.id}>
<td style={{minWidth: colID}}>
<td style={{minWidth: colName}}>
<Link
className="link-success"
to={`/sources/${source.id}/tickscript/${task.id}`}
>
{task.id}
{task.name}
</Link>
</td>
<td style={{width: colName}}>
{task.name || ''}
</td>
<td style={{width: colType, textTransform: 'capitalize'}}>
{task.type}
</td>

View File

@ -8,7 +8,6 @@ export const KAPACITOR_RULES_TABLE = {
}
export const TASKS_TABLE = {
colID: '200px',
colName: '200px',
colType: '90px',
colEnabled: '64px',