Skip to content

Commit c0db0eb

Browse files
author
Vikas Agarwal
committed
Github issue#1294, Watson chatbot updates [priority]
— Added disclaimer to Specification form as well
1 parent f334687 commit c0db0eb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/projects/detail/containers/Specification.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,12 @@ $sideBarMaxWidth: 360px;
300300
resize: vertical;
301301
}
302302
}
303+
304+
.right-area-footer {
305+
@include tc-label-sm;
306+
color: $tc-gray-50;
307+
margin-top: 4 * $base_unit;
308+
}
303309
}
304310

305311
.contents-list {

src/projects/detail/containers/SpecificationContainer.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Sticky from 'react-stickynode'
88
import ProjectSpecSidebar from '../components/ProjectSpecSidebar'
99
import FooterV2 from '../../../components/FooterV2/FooterV2'
1010
import EditProjectForm from '../components/EditProjectForm'
11+
import { findProduct } from '../../../config/projectWizard'
1112
import { updateProject, fireProjectDirty, fireProjectDirtyUndo } from '../../actions/project'
1213
import spinnerWhileLoading from '../../../components/LoadingSpinner'
1314
// import { Icons } from 'appirio-tech-react-components'
@@ -49,6 +50,8 @@ class SpecificationContainer extends Component {
4950

5051
render() {
5152
const { project, currentMemberRole, processing } = this.props
53+
const productId = _.get(project, 'details.products[0]')
54+
const product = findProduct(productId)
5255

5356
let specification = 'topcoder.v1'
5457
if (project.details && project.details.products && project.details.products[0])
@@ -76,6 +79,9 @@ class SpecificationContainer extends Component {
7679
fireProjectDirty={ this.props.fireProjectDirty }
7780
fireProjectDirtyUndo= { this.props.fireProjectDirtyUndo }
7881
/>
82+
<div className="right-area-footer">
83+
{ _.get(product, 'formDesclaimer') }
84+
</div>
7985
</div>
8086

8187
</div>

0 commit comments

Comments
 (0)