/* globals i18n */

import Controller from 'ember-controller';
import computed from 'ember-computed';
import injectService from 'ember-service/inject';

export default Controller.extend({
  layout: injectService(),

  sortBy: "channel_count",

  sortHeader: computed('sortBy', function () {
    let sortType = this.get('sortBy');
    if (sortType === "skill") {
      return i18n("Skill");
    }

    return i18n("Viewers");
  })
});
