open-consul/ui/packages/consul-ui/app/helpers/collapsible-notices.js
2021-10-12 09:27:06 -04:00

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);