Signal-Desktop/js/views/group_member_list_view.js

30 lines
1.1 KiB
JavaScript
Raw Normal View History

/*
* vim: ts=4:sw=4:expandtab
2015-08-04 19:15:37 +00:00
*/
(function () {
'use strict';
window.Whisper = window.Whisper || {};
// This needs to make each member link to their verification view - except for yourself
// Do we update the display of each user to add Verified to their name if verified?
// What about the case where we're brought here because there are multiple users in the no-longer-verified state?
// We probably want to display some sort of helper text in that case at the least
// Or do we show only the problematic users in that case?
2015-08-04 19:15:37 +00:00
Whisper.GroupMemberList = Whisper.View.extend({
className: 'group-member-list panel',
templateName: 'group-member-list',
2015-08-04 19:15:37 +00:00
initialize: function() {
this.render();
this.member_list_view = new Whisper.ContactListView({
2015-08-04 19:15:37 +00:00
collection: this.model.contactCollection,
className: 'members'
});
this.member_list_view.render();
this.$('.container').append(this.member_list_view.el);
2015-08-04 19:15:37 +00:00
},
2015-12-26 01:03:32 +00:00
render_attributes: {
members: i18n('members')
}
2015-08-04 19:15:37 +00:00
});
})();