Merge "Fix assignee getting the owner's status on change list" into stable-2.16

This commit is contained in:
David Pursehouse 2018-11-29 23:36:15 +00:00 committed by Gerrit Code Review
commit bcf7f9306f
2 changed files with 5 additions and 1 deletions

View File

@ -165,8 +165,9 @@ limitations under the License.
hidden$="[[isColumnHidden('Assignee', visibleChangeTableColumns)]]">
<template is="dom-if" if="[[change.assignee]]">
<gr-account-link
id="assigneeAccountLink"
account="[[change.assignee]]"
additional-text="[[_computeAccountStatusString(change.owner)]]"></gr-account-link>
additional-text="[[_computeAccountStatusString(change.assignee)]]"></gr-account-link>
</template>
<template is="dom-if" if="[[!change.assignee]]">
<span class="placeholder">--</span>

View File

@ -182,10 +182,13 @@ limitations under the License.
element.change = {
assignee: {
name: 'test',
status: 'test',
},
};
flushAsynchronousOperations();
assert.isOk(element.$$('.assignee gr-account-link'));
assert.equal(Polymer.dom(element.root)
.querySelector('#assigneeAccountLink').additionalText, '(test)');
});
test('_computeAccountStatusString', () => {