aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/users/list-view.js
blob: 09c9816c7f161f829870a8aecca3be1378c43270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import Marionette from 'backbone.marionette';

import ListItemView from './list-item-view';
import Template from './templates/users-list.hbs';


export default Marionette.CompositeView.extend({
  template: Template,
  childView: ListItemView,
  childViewContainer: 'tbody',

  collectionEvents: {
    'request': 'showLoading',
    'sync': 'hideLoading'
  },

  showLoading: function () {
    this.$el.addClass('new-loading');
  },

  hideLoading: function () {
    this.$el.removeClass('new-loading');
  }
});