A platform for community discussion. Free, open, simple.
UX: Hide pending score statuses
Robin Wardca03baf2b2fa
diff --git a/app/assets/javascripts/discourse/templates/components/reviewable-score.hbs b/app/assets/javascripts/discourse/templates/components/reviewable-score.hbsindex ac79bb0fc31..aa9a2f0fe2d 100644--- a/app/assets/javascripts/discourse/templates/components/reviewable-score.hbs+++ b/app/assets/javascripts/discourse/templates/components/reviewable-score.hbs@@ -17,29 +17,33 @@{{format-date rs.created_at format="tiny"}}</td>- <td class="reviewable-score-spacer">- {{d-icon "angle-double-right"}}- </td>+ {{#if showStatus}}+ <td class="reviewable-score-spacer">+ {{d-icon "angle-double-right"}}+ </td>- <td class='reviewed-by'>- {{#if rs.reviewed_by}}- {{#user-link user=rs.reviewed_by}}- {{avatar rs.reviewed_by imageSize="tiny"}}- {{rs.reviewed_by.username}}- {{/user-link}}- {{else}}- —- {{/if}}- </td>+ <td class='reviewed-by'>+ {{#if rs.reviewed_by}}+ {{#user-link user=rs.reviewed_by}}+ {{avatar rs.reviewed_by imageSize="tiny"}}+ {{rs.reviewed_by.username}}+ {{/user-link}}+ {{else}}+ —+ {{/if}}+ </td>- <td>- {{reviewable-status rs.status}}- </td>- <td>- {{#if rs.reviewed_by}}- {{format-date rs.reviewed_at format="tiny"}}- {{/if}}- </td>+ <td>+ {{reviewable-status rs.status}}+ </td>+ <td>+ {{#if rs.reviewed_by}}+ {{format-date rs.reviewed_at format="tiny"}}+ {{/if}}+ </td>+ {{else}}+ <td colspan="4"></td>+ {{/if}}</tr>{{#if rs.reason}}diff --git a/app/assets/javascripts/discourse/templates/components/reviewable-score.js.es6 b/app/assets/javascripts/discourse/templates/components/reviewable-score.js.es6index fb76ed3e201..abceda03cac 100644--- a/app/assets/javascripts/discourse/templates/components/reviewable-score.js.es6+++ b/app/assets/javascripts/discourse/templates/components/reviewable-score.js.es6@@ -3,6 +3,8 @@ import computed from "ember-addons/ember-computed-decorators";export default Ember.Component.extend({tagName: "",+ showStatus: Ember.computed.gt("rs.status", 0),+@computed("rs.score_type.title", "reviewable.target_created_by")title(title, targetCreatedBy) {if (title && targetCreatedBy) {