open-consul/ui/packages/consul-ui/app/helpers/collapsible-notices.js

10 lines
276 B
JavaScript
Raw Normal View History

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