Skip to content

Commit d9e2d88

Browse files
authored
Merge pull request #287 from terminusdb/add-change-request-optional
fix disabled icons
2 parents 800f279 + 9089ab8 commit d9e2d88

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/tdb-dashboard/src/components/IconBar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export const IconBar = ({setShowFeedbackForm}) => {
1212
const instanceRead = accessControlDashboard && accessControlDashboard.instanceRead() ? accessControlDashboard.instanceRead() : false
1313
const { organization, dataProduct } = useParams();
1414

15-
let disabled = {}// {disabled:true}
16-
let basecss = "" //"disabled"
17-
/*if(dataProduct && dataProduct!=='_system'){
15+
let disabled = {disabled:true}
16+
let basecss = "disabled"
17+
if( dataProduct ){
1818
disabled={}
1919
basecss = ""
20-
}*/
20+
}
2121

2222
const getUrl = (pageName)=> {
2323
return `/${organization}/${dataProduct}/${pageName}`

packages/tdb-dashboard/src/pages/Home.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const Home = () => {
4444
</h3>
4545
<Row>
4646
{teamList.map((item,index) =>{
47+
if(item.name!=="terminusCR"){
4748
return <Col md={4} className="py-2 doc-summary-card" key={`key___${index}`}>
4849
<Button id={item.name} className="bg-transparent border-0 p-0 w-100" onClick={(e) => changeOrganizationHandler(item.name)}>
4950
<Card bg="dark" style={{maxHeight: "220px", cursor: "pointer"}} >
@@ -58,7 +59,7 @@ export const Home = () => {
5859
</Card>
5960
</Button>
6061
</Col>
61-
})}
62+
}})}
6263
</Row>
6364
</Col>
6465
</Container>

0 commit comments

Comments
 (0)