Fix regression with UUID showing the id

Bug: Issue 12725
Change-Id: I0601016c5b4be5f5a64f37c61023d0d6cb61fb6f
This commit is contained in:
Paladox none
2020-05-11 10:34:08 +00:00
parent d946f6335a
commit 54505fcb70
2 changed files with 12 additions and 1 deletions

View File

@@ -43,7 +43,10 @@ export const htmlTemplate = html`
<fieldset>
<h3 id="groupUUID">Group UUID</h3>
<fieldset>
<gr-copy-clipboard text="[[groupId]]"></gr-copy-clipboard>
<gr-copy-clipboard
id="uuid"
text="[[_groupConfig.id]]"
></gr-copy-clipboard>
</fieldset>
<h3 id="groupName" class$="[[_computeHeaderClass(_rename)]]">
Group Name

View File

@@ -271,5 +271,13 @@ suite('gr-group tests', () => {
element._loadGroup();
});
test('uuid', () => {
element._groupConfig = {
id: '6a1e70e1a88782771a91808c8af9bbb7a9871389',
};
assert.equal(element._groupConfig.id, element.$.uuid.text);
});
});
</script>