summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-01-15 09:27:52 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-01-15 09:27:58 +0100
commit868e4d9403268e0f17235e1993496e92cb8883be (patch)
tree37bbf09715ee05ec5172fcd93a3ac7b9ea44c33c
parente385f53491d6bfdcf4f3a44656a93b17dc5e3096 (diff)
downloadsonarqube-868e4d9403268e0f17235e1993496e92cb8883be.tar.gz
sonarqube-868e4d9403268e0f17235e1993496e92cb8883be.zip
SONAR-7167 display key in a text input5.4-M6
-rw-r--r--server/sonar-web/src/main/js/apps/overview/meta.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/meta.js b/server/sonar-web/src/main/js/apps/overview/meta.js
index d1dab708101..403bc3c6f72 100644
--- a/server/sonar-web/src/main/js/apps/overview/meta.js
+++ b/server/sonar-web/src/main/js/apps/overview/meta.js
@@ -98,9 +98,10 @@ export default React.createClass({
let keyCard = (
<div>
<h4 className="overview-meta-header">{translate('key')}</h4>
- <div style={{ overflow: 'auto', whiteSpace: 'nowrap' }}>
- <code>{this.props.component.key}</code>
- </div>
+ <input
+ type="text"
+ value={this.props.component.key}
+ style={{ width: '100%' }}/>
</div>
);