mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
16433d661a
FREEBIE
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
/*
|
|
* vim: ts=4:sw=4:expandtab
|
|
*/
|
|
(function () {
|
|
'use strict';
|
|
window.Whisper = window.Whisper || {};
|
|
|
|
// TODO: take a title string which could replace the 'members' header
|
|
Whisper.GroupMemberList = Whisper.View.extend({
|
|
className: 'group-member-list panel',
|
|
templateName: 'group-member-list',
|
|
initialize: function(options) {
|
|
this.needVerify = options.needVerify;
|
|
|
|
this.render();
|
|
|
|
this.member_list_view = new Whisper.ContactListView({
|
|
collection: this.model,
|
|
className: 'members',
|
|
toInclude: {
|
|
listenBack: options.listenBack
|
|
}
|
|
});
|
|
this.member_list_view.render();
|
|
|
|
this.$('.container').append(this.member_list_view.el);
|
|
},
|
|
render_attributes: function() {
|
|
var summary;
|
|
if (this.needVerify) {
|
|
summary = i18n('membersNeedingVerification');
|
|
}
|
|
|
|
return {
|
|
members: i18n('groupMembers'),
|
|
summary: summary
|
|
};
|
|
}
|
|
});
|
|
})();
|