Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Itempicker: Add back missing filter in template picker #9132

Merged
merged 1 commit into from Oct 13, 2020
Merged

Itempicker: Add back missing filter in template picker #9132

merged 1 commit into from Oct 13, 2020

Conversation

BatJan
Copy link
Contributor

@BatJan BatJan commented Oct 10, 2020

Prerequisites

  • I have added steps to test this contribution in the description below

Description

@nul800sebastiaan This PR fixes the issue where the search filter was not being displayed when used in the "template" context - Since the model is not immutable it's not enough to assume that the filter should be displayed or hidden if model.filter is true or false since it can also be undefined. Therefore it's now changed from ng-if="model.filter" to ng-if="model.filter !== false 👍

Before
item-picker-template-before

After
item-picker-template-after

@emmaburstow
Copy link
Contributor

Hey @BatJan!

Thanks for the PR. We'll take a look and shout if we need anything. Happy Hacktoberfest!

Em

Copy link
Contributor

@emmaburstow emmaburstow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect :)

@emmaburstow emmaburstow merged commit 1c77ec1 into umbraco:v8/contrib Oct 13, 2020
@nul800sebastiaan nul800sebastiaan changed the title Itempicker: Fix filter check Itempicker: Add back missing filter in template picker Oct 13, 2020
@nul800sebastiaan
Copy link
Member

This broke in v8.8.0, have cherry picked for 8.8.1 (and higher versions) in 7d3df87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants