remove unused updateInboxSectionUnread()

This commit is contained in:
Audric Ackermann 2020-08-24 14:10:06 +10:00
parent 422c2610b6
commit 55c4963772
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4
2 changed files with 0 additions and 36 deletions

View File

@ -174,7 +174,6 @@
});
// FIXME: Fix this for new react views
this.updateInboxSectionUnread();
this.setupLeftPane();
},
render_attributes: {
@ -429,24 +428,6 @@
}
this.$('.conversation:first .recorder').trigger('close');
},
updateInboxSectionUnread() {
// FIXME: Fix this for new react views
// const $section = this.$('.section-conversations-unread-counter');
// const models =
// (this.inboxListView.collection &&
// this.inboxListView.collection.models) ||
// [];
// const unreadCount = models.reduce(
// (count, m) => count + Math.max(0, m.get('unreadCount')),
// 0
// );
// $section.text(unreadCount);
// if (unreadCount > 0) {
// $section.show();
// } else {
// $section.hide();
// }
},
onClick(e) {
this.closeRecording(e);
},

View File

@ -186,23 +186,6 @@ h4.section-toggle,
h4 {
flex: 1;
}
.section-conversations-unread-counter {
color: #ffffff;
background-color: #2090ea;
text-align: center;
padding-top: 1px;
padding-left: 3px;
padding-right: 3px;
font-weight: 300;
font-size: 11px;
letter-spacing: 0.25px;
height: 16px;
min-width: 16px;
line-height: 16px;
border-radius: 8px;
box-shadow: 0px 0px 0px 1px #1a1c20;
}
}
.network-status-container {