Merge pull request #6980 from marshmalien/fix/insightsProjectEmptyRevisionString

Hide copy icon when revision string is empty
This commit is contained in:
Marliana Lara 2017-07-12 11:07:51 -04:00 committed by GitHub
commit be6c6d3fe0
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@
<!-- REVISION DETAIL -->
<div class="JobResults-resultRow"
ng-show="job.scm_revision">
ng-if="job.scm_revision">
<label class="JobResults-resultRowLabel">
Revision
</label>

View File

@ -525,7 +525,7 @@ angular.module('GeneratorHelpers', [systemStatus.name])
Attr(field, 'columnClass') : "";
html += `
<td ${classList}>
<at-truncate string="{{project.scm_revision}}" maxLength="7"></at-truncate>
<at-truncate ng-if="project.scm_revision" string="{{project.scm_revision}}" maxLength="7"></at-truncate>
</td>`;
} else if (field.type === 'badgeCount') {
html = BadgeCount(params);