Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

- Fix: OpenProject avatar remains stale [#1058](https://github.com/nextcloud/integration_openproject/pull/1058)
- Fix: Unnecessary 404 requests when searching OpenProject work packages [#1070](https://github.com/nextcloud/integration_openproject/pull/1070)
- Fix: OpenProject avatar remains stale [#1069](https://github.com/nextcloud/integration_openproject/pull/1069)

### Changed

Expand Down
1 change: 0 additions & 1 deletion src/components/tab/WorkPackage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<NcAvatar class="item-avatar"
:size="23"
:url="workpackage.picture"
:user="workpackage.assignee"
:display-name="workpackage.assignee" />
</div>
<div class="row__assignee__assignee">
Expand Down
11 changes: 11 additions & 0 deletions tests/jest/components/tab/WorkPackage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,15 @@ describe('WorkPackage.vue', () => {
expect(workPackages).toMatchSnapshot()

})

it('passes displayName, size and url props to NcAvatar but does not pass the user props', () => {
const avatar = wrapper.findComponent({ name: 'NcAvatar' })
expect(avatar.exists()).toBe(true)
expect(avatar.props()).toMatchObject({
displayName: 'test',
size: expect.any(Number),
url: '/server/index.php/apps/integration_openproject/avatar?userId=1&userName=System',
})
expect(avatar.props('user')).toBeUndefined()
})
})
Loading