aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/update-center/footer-view.js
blob: 07f8e62212403fe25e060d2ee6a824f36c66df72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import _ from 'underscore';
import Marionette from 'backbone.marionette';
import Template from './templates/update-center-footer.hbs';

export default Marionette.ItemView.extend({
  template: Template,

  collectionEvents: {
    'all': 'render'
  },

  serializeData: function () {
    return _.extend(this._super(), {
      total: this.collection.where({ _hidden: false }).length
    });
  }
});