diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-08-10 14:19:17 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-08-10 14:19:17 +0200 |
commit | 7bb8cfe63cffa2f0e6eb33c902320e53cfd4cf21 (patch) | |
tree | fd1c69d70be7e84ac0719c03e2279a4f7791381a /server/sonar-web/src/main/js/apps/overview/meta/MetaLinks.js | |
parent | 143f3c560bcf7ceac9585c1dfea7311f037834cb (diff) | |
download | sonarqube-7bb8cfe63cffa2f0e6eb33c902320e53cfd4cf21.tar.gz sonarqube-7bb8cfe63cffa2f0e6eb33c902320e53cfd4cf21.zip |
SONAR-7920 sort links
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/meta/MetaLinks.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/overview/meta/MetaLinks.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/meta/MetaLinks.js b/server/sonar-web/src/main/js/apps/overview/meta/MetaLinks.js index 1bc4b5ce256..067b04483c5 100644 --- a/server/sonar-web/src/main/js/apps/overview/meta/MetaLinks.js +++ b/server/sonar-web/src/main/js/apps/overview/meta/MetaLinks.js @@ -19,7 +19,7 @@ */ import React from 'react'; import { getProjectLinks } from '../../../api/projectLinks'; -import { isProvided } from '../../project-admin/links/utils'; +import { isProvided, orderLinks } from '../../project-admin/links/utils'; export default class MetaLinks extends React.Component { static propTypes = { @@ -64,9 +64,11 @@ export default class MetaLinks extends React.Component { return null; } + const orderedLinks = orderLinks(links); + return ( <ul className="overview-meta-list big-spacer-bottom"> - {links.map(link => ( + {orderedLinks.map(link => ( <li key={link.id}> <a className="link-with-icon" href={link.url} target="_blank"> {this.renderLinkIcon(link)} |