checks on propertybagfilteredsitelist
This commit is contained in:
parent
8a31e5cfc4
commit
5532aa66f6
|
@ -304,6 +304,7 @@ export default class PropertyBagFilteredSiteList extends React.Component<IProper
|
||||||
value: value
|
value: value
|
||||||
},
|
},
|
||||||
checked: this.AppliedFilterExists(this.state.appliedUserFilters, uf.managedPropertyName, value),
|
checked: this.AppliedFilterExists(this.state.appliedUserFilters, uf.managedPropertyName, value),
|
||||||
|
canCheck: true,
|
||||||
name: value,
|
name: value,
|
||||||
title: value,
|
title: value,
|
||||||
onClick: this.filterOnMetadata.bind(this)
|
onClick: this.filterOnMetadata.bind(this)
|
||||||
|
@ -323,6 +324,7 @@ export default class PropertyBagFilteredSiteList extends React.Component<IProper
|
||||||
* @memberOf PropertyBagFilteredSiteList
|
* @memberOf PropertyBagFilteredSiteList
|
||||||
*/
|
*/
|
||||||
public AppliedFilterExists(appliedUserFilters: AppliedUserFilter[], managedPropertyName: string, value: string): boolean {
|
public AppliedFilterExists(appliedUserFilters: AppliedUserFilter[], managedPropertyName: string, value: string): boolean {
|
||||||
|
debugger;
|
||||||
const selectedFilter = _.find(appliedUserFilters, af => {
|
const selectedFilter = _.find(appliedUserFilters, af => {
|
||||||
return (af.managedPropertyName === managedPropertyName && af.value === value);
|
return (af.managedPropertyName === managedPropertyName && af.value === value);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue