Skip to content
Snippets Groups Projects
Commit fbe69255 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-7594 : NEW openBIS UI - General Template/Infrastructure for Tables -...

SSDM-7594 : NEW openBIS UI - General Template/Infrastructure for Tables - Visualisation/Creation/Edit - change search tabs label
parent a0a12230
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ import {withStyles} from '@material-ui/core/styles'
import Tabs from '@material-ui/core/Tabs'
import Tab from '@material-ui/core/Tab'
import CloseIcon from '@material-ui/icons/Close'
import * as objectTypes from '../../../common/consts/objectType.js'
import logger from '../../../common/logger.js'
const styles = {
......@@ -72,7 +73,18 @@ class ContentTabs extends React.Component {
}
renderLabel(object){
let label = _.find(this.props.changedObjects, object) ? object.id + '*' : object.id
let changed = _.find(this.props.changedObjects, object) ? '*' : ''
let label = null
switch(object.type){
case objectTypes.SEARCH:
label = 'search: ' + object.id
break
default:
label = object.id + changed
break
}
return <span className={this.props.classes.tabLabel}>{label}{this.renderIcon(object)}</span>
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment