Merge "Fix assignee getting the owner's status on change list" into stable-2.16
This commit is contained in:
commit
bcf7f9306f
|
@ -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>
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue