-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for fallback-details overriding person-query (#2786)
Co-authored-by: Musale Martin <[email protected]>
- Loading branch information
Showing
2 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,21 +46,27 @@ export const setPersonDetails = () => html` | |
|
||
export const personFallbackDetails = () => html` | ||
<div class="example"> | ||
<mgt-person person-query="mbowen" view="twoLines" fallback-details='{"displayName":"Megan Bowen"}'></mgt-person> | ||
<mgt-person person-query="mbowen" view="twoLines" show-presence fallback-details='{"displayName":"Megan Bowen"}'></mgt-person> | ||
</div> | ||
<div class="example"> | ||
<mgt-person person-query="mbowen" view="twoLines" | ||
<mgt-person person-query="mbowen" view="twoLines" show-presence | ||
fallback-details='{"mail":"[email protected]"}'></mgt-person> | ||
</div> | ||
<div class="example"> | ||
<mgt-person person-query="mbowen" view="twoLines" | ||
<mgt-person person-query="mbowen" view="twoLines" show-presence | ||
fallback-details='{"mail":"[email protected]","displayName":"Megan Bowen"}'></mgt-person> | ||
</div> | ||
<!-- No Fallback details --> | ||
<div class="example"> | ||
<mgt-person person-query="mbowen" view="twoLines" | ||
<mgt-person person-query="mbowen" view="twoLines" show-presence | ||
fallback-details='{}'></mgt-person> | ||
</div> | ||
<!-- Correct Person Query and Fallback Details --> | ||
<div class="example"> | ||
<mgt-person person-query="bowen" view="twoLines" show-presence | ||
fallback-details='{"mail":"[email protected]","displayName":"Someone"}'></mgt-person> | ||
</div> | ||
<style> | ||
.example { | ||
|