Show "submittable" checkmarks in submitted together list

Feature: Issue 5276
Change-Id: I7fea3a414ae22ba07588129914c73fa040413692
This commit is contained in:
Wyatt Allen
2017-07-17 15:11:06 -07:00
parent 16abcf65cf
commit 7c22873b0f
2 changed files with 17 additions and 1 deletions

View File

@@ -79,6 +79,13 @@ limitations under the License.
.submittable {
color: #1b5e20;
}
.submittableCheck {
color: #388E3C;
display: none;
}
.submittableCheck.submittable {
display: inline;
}
.hidden,
.mobile {
display: none;
@@ -124,6 +131,10 @@ limitations under the License.
title$="[[change.project]]: [[change.branch]]: [[change.subject]]">
[[change.project]]: [[change.branch]]: [[change.subject]]
</a>
<span
tabindex="-1"
title="Submittable"
class$="submittableCheck [[_computeLinkClass(change)]]"></span>
</div>
</template>
</section>

View File

@@ -176,9 +176,14 @@
},
_computeLinkClass(change) {
const statuses = [];
if (change.status == this.ChangeStatus.ABANDONED) {
return 'strikethrough';
statuses.push('strikethrough');
}
if (change.submittable) {
statuses.push('submittable');
}
return statuses.join(' ');
},
_computeChangeStatusClass(change) {