feat: added view button to nodule list item
This commit is contained in:
parent
60b5c6a98a
commit
4b0e321677
@ -2,7 +2,7 @@ import React, { Component } from 'react'
|
|||||||
import { Card, Icon, CardContent } from 'semantic-ui-react'
|
import { Card, Icon, CardContent } from 'semantic-ui-react'
|
||||||
import './NoduleList.css'
|
import './NoduleList.css'
|
||||||
|
|
||||||
import Nodule from '../../Collections/Nodules'
|
import Nodule from '../../Models/Nodules'
|
||||||
import NoduleListController from '../../Controllers/NoduleListController'
|
import NoduleListController from '../../Controllers/NoduleListController'
|
||||||
|
|
||||||
class NoduleList extends Component {
|
class NoduleList extends Component {
|
||||||
@ -28,12 +28,17 @@ class NoduleList extends Component {
|
|||||||
<Card.Header>{ n.label }</Card.Header>
|
<Card.Header>{ n.label }</Card.Header>
|
||||||
<Card.Meta>{`${n.tables.length} tables`}</Card.Meta>
|
<Card.Meta>{`${n.tables.length} tables`}</Card.Meta>
|
||||||
</Card.Content>
|
</Card.Content>
|
||||||
<CardContent
|
<CardContent extra>
|
||||||
extra
|
<span
|
||||||
onClick={() => { this.controller.deleteNodule(n.id) }}
|
onClick={() => { this.controller.deleteNodule(n.id) }}
|
||||||
style={{ cursor: 'pointer' }}
|
style={{ cursor: 'pointer' }}>
|
||||||
>
|
|
||||||
Delete <Icon name='trash' />
|
Delete <Icon name='trash' />
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
onClick={() => { this.controller.logExportById(n.id) }}
|
||||||
|
style={{ cursor: 'pointer' }}>
|
||||||
|
View <Icon name='table' />
|
||||||
|
</span>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user