Closed Rafaelki closed 1 day ago
Hi, is there any update on this?
Getting Expected behavior 2: "buttons that are not going to work should not be visible" should not be complex, it is just amending the conditions around the buttons, eg. https://github.com/microsoftgraph/microsoft-graph-toolkit/blob/ab466977b05e8079f08cc63bf6a9600c98344751/packages/mgt-components/src/components/mgt-person-card/mgt-person-card.ts#L676
should not check by if (userPerson.userPrincipalName)
, it should check by if (hasPhone())
.
Note that hasPhone is a private function that is never called.
@Rafaelki we appreciate your patience on this, thank you for the bug report and clear steps for repro. This is a clear bug, a fix for it will be available in the next release at the end of this month.
Describe the bug When the person component is defined using person-details, the buttons in the person-card for chat, video and call are visible but not working on click.
Screenshots
To Reproduce Steps to reproduce the behavior:
<mgt-person person-details='{"displayName":"Frank Herbert1","jobTitle":"jobTitle","department":"department","id":"ccdev1@fresh.onmicrosoft.com"}' view="threelines" person-card="click" />
Expected behavior
Environment (please complete the following information):
Workaround I found a workaround by adding the properties userPrincipalName and businessPhones in the person-details object, but this should not be necessary as they can be obtained when the actual name is resolved. I think this was the case in previous versions of MGT.
<mgt-person person-details='{"displayName":"Frank Herbert2","jobTitle":"jobTitle","department":"department","id":"ccdev1@fresh.onmicrosoft.com","userPrincipalName":"ccdev1@fresh.onmicrosoft.com","businessPhones":["1234"]}' view="threelines" person-card="click" />