mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
Every table column type should be editable
This commit is contained in:
parent
b549d17942
commit
103a03e6dd
1 changed files with 9 additions and 11 deletions
|
|
@ -169,17 +169,15 @@ class Table extends React.Component {
|
|||
</div>
|
||||
)}
|
||||
|
||||
{column.columnType === 'string' || column.columnType === 'text' && (
|
||||
<label className="form-check form-switch my-2">
|
||||
<input
|
||||
className="form-check-input"
|
||||
type="checkbox"
|
||||
onClick={() => this.onColumnItemChange(index, 'isEditable', !column.isEditable)}
|
||||
checked={column.isEditable}
|
||||
/>
|
||||
<span className="form-check-label">make editable</span>
|
||||
</label>
|
||||
)}
|
||||
<label className="form-check form-switch my-2">
|
||||
<input
|
||||
className="form-check-input"
|
||||
type="checkbox"
|
||||
onClick={() => this.onColumnItemChange(index, 'isEditable', !column.isEditable)}
|
||||
checked={column.isEditable}
|
||||
/>
|
||||
<span className="form-check-label">make editable</span>
|
||||
</label>
|
||||
|
||||
<button className="btn btn-sm btn-outline-danger col" onClick={() => this.removeAction(index)}>
|
||||
Remove
|
||||
|
|
|
|||
Loading…
Reference in a new issue