08138a86fb
* ui: Default allow notices test (#11240)
10 lines
276 B
JavaScript
10 lines
276 B
JavaScript
import { helper } from '@ember/component/helper';
|
|
|
|
export function collapsibleNotices(params, hash) {
|
|
// This filter will only return truthy items
|
|
const noticesCount = params.filter(Boolean).length;
|
|
return noticesCount > 2;
|
|
}
|
|
|
|
export default helper(collapsibleNotices);
|