import computed from 'ember-computed';
import Component from 'ember-component';
import { routes } from 'web-client/utilities/friends-list/settings';

export default Component.extend({
  classNames: ['js-friend-filter'],
  friendsRoute: routes.friends,
  friends: null,
  hasQuery: false,

  showViewAllFriends: computed('friendsRoute', 'hasQuery', function() {
    return this.get('friendsRoute') &&
           !this.get('hasQuery');
  })
});
