fix(contacts): display name not uri for recent-contacted address book#3339
Conversation
| return this.options. | ||
| filter(option => option.readOnly === undefined || !option.readOnly). | ||
| map(addressbook => { |
There was a problem hiding this comment.
| return this.options. | |
| filter(option => option.readOnly === undefined || !option.readOnly). | |
| map(addressbook => { | |
| return this.options | |
| .filter(option => option.readOnly === undefined || !option.readOnly). | |
| .map(addressbook => { |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #3339 +/- ##
==========================================
- Coverage 1.86% 0.00% -1.87%
Complexity 272 272
==========================================
Files 112 25 -87
Lines 5963 824 -5139
Branches 1401 0 -1401
==========================================
- Hits 111 0 -111
+ Misses 5738 824 -4914
+ Partials 114 0 -114 ☔ View full report in Codecov by Sentry. |
|
@ChristophWurst This seems to be a generel bug with the PropertySelect component because the isReadOnly is not passed, so it's always false. |
| */ | ||
| selectableOptions() { | ||
| return this.options | ||
| .filter(option => option.readOnly === undefined || !option.readOnly) |
There was a problem hiding this comment.
| .filter(option => option.readOnly === undefined || !option.readOnly) | |
| .filter(option => !option.readOnly) |
Could be simplified.
| addressbooksOptions() { | ||
| return this.addressbooks | ||
| .filter(addressbook => !addressbook.readOnly && addressbook.enabled) | ||
| .filter(addressbook => addressbook.enabled) | ||
| .map(addressbook => { | ||
| return { | ||
| id: addressbook.id, | ||
| name: addressbook.displayName, | ||
| readOnly: addressbook.readOnly, | ||
| } | ||
| }) |
There was a problem hiding this comment.
This could have side effects. However, I did not spot any during my testing and the address book options made sense.
Signed-off-by: Johannes Merkel <[email protected]>
9e75e67 to
6421bd4
Compare
|
/backport to stable5.2 |
|
/backport to stable4.2 |



Fix: #2187