diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-11-23 09:29:32 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-11-23 09:29:32 +0100 |
commit | b3a8aafb6905f7c46031ce2d32e977dd330cb92f (patch) | |
tree | 761b58fd55073934ec867ae6fe01d1acbb3ca722 /server/sonar-web/src/main | |
parent | 8406fc3181840a5f411b5157dd079eb67ee10040 (diff) | |
download | sonarqube-b3a8aafb6905f7c46031ce2d32e977dd330cb92f.tar.gz sonarqube-b3a8aafb6905f7c46031ce2d32e977dd330cb92f.zip |
SONAR-6957 apply feedback
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r-- | server/sonar-web/src/main/js/apps/background-tasks/tasks.js | 14 | ||||
-rw-r--r-- | server/sonar-web/src/main/less/pages.less | 1 | ||||
-rw-r--r-- | server/sonar-web/src/main/less/pages/background-tasks.less | 15 |
3 files changed, 8 insertions, 22 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/tasks.js b/server/sonar-web/src/main/js/apps/background-tasks/tasks.js index efe7516b711..1b71cf473b1 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/tasks.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/tasks.js @@ -56,18 +56,12 @@ export default React.createClass({ return <td><span className="note">{task.id}</span></td>; } - let filter = <span className="background-task-filter"> - <a onClick={this.handleFilter.bind(this, task)} className="icon-filter icon-half-transparent" href="#" - title={`Show only "${task.componentName}" tasks`} data-toggle="tooltip"/> - </span>; - return ( <td> <span className="little-spacer-right"> <QualifierIcon qualifier={task.componentQualifier}/> </span> <a href={getComponentUrl(task.componentKey)}>{task.componentName}</a> - {filter} </td> ); }, @@ -98,6 +92,13 @@ export default React.createClass({ return !moment(a).isSame(moment(b), 'day'); }, + renderFilter(task) { + return <td className="thin nowrap"> + <a onClick={this.handleFilter.bind(this, task)} className="icon-filter icon-half-transparent spacer-left" href="#" + title={`Show only "${task.componentName}" tasks`} data-toggle="tooltip"/> + </td>; + }, + renderCancelButton(task) { if (task.status === STATUSES.PENDING) { return ( @@ -133,6 +134,7 @@ export default React.createClass({ {this.renderLogsLink(task)} {this.renderCancelButton(task)} </td> + {this.renderFilter(task)} </tr> ); }, diff --git a/server/sonar-web/src/main/less/pages.less b/server/sonar-web/src/main/less/pages.less index d806e8862f9..05892910ed5 100644 --- a/server/sonar-web/src/main/less/pages.less +++ b/server/sonar-web/src/main/less/pages.less @@ -1,5 +1,4 @@ @import "pages/analysis-reports"; -@import "pages/background-tasks"; @import "pages/coding-rules"; @import "pages/dashboard"; @import "pages/issues"; diff --git a/server/sonar-web/src/main/less/pages/background-tasks.less b/server/sonar-web/src/main/less/pages/background-tasks.less deleted file mode 100644 index 68d106553b1..00000000000 --- a/server/sonar-web/src/main/less/pages/background-tasks.less +++ /dev/null @@ -1,15 +0,0 @@ -@import (reference) '../variables'; - -.background-tasks { - tr:hover .background-task-filter { - opacity: 1; - transform: translateX(0); - } -} - -.background-task-filter { - margin-left: 10px; - opacity: 0; - transform: translateX(15px); - transition: opacity 0.2s ease, transform 0.2s ease; -} |