Sesh titles now glow while unread, fixed chat icon un-lighting pre-emptively.
This commit is contained in:
parent
e85fb18ce5
commit
64348b8486
3 changed files with 19 additions and 12 deletions
|
|
@ -106,14 +106,8 @@ class pmPanel extends panelObj{
|
|||
//Render out the newest message
|
||||
this.renderMessage(data);
|
||||
}else{
|
||||
//pull current session entry if it exists
|
||||
const curEntry = this.panelDocument.querySelector(`[data-id="${nameObj.name}"]`);
|
||||
|
||||
//If it doesn't exist
|
||||
if(curEntry == null){
|
||||
//Re-render out the sesh list
|
||||
this.renderSeshList();
|
||||
}
|
||||
//Re-render out the sesh list
|
||||
this.renderSeshList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -194,6 +188,9 @@ class pmPanel extends panelObj{
|
|||
if(sesh.id == this.activeSesh){
|
||||
//mark it as such
|
||||
entryDiv.classList.add('positive');
|
||||
//If it contains something unread
|
||||
}else if(sesh.unread){
|
||||
entryDiv.classList.add('positive-afterglow');
|
||||
}
|
||||
|
||||
//Create sesh label
|
||||
|
|
@ -232,6 +229,9 @@ class pmPanel extends panelObj{
|
|||
|
||||
//Re-render message buffer
|
||||
this.renderMessages();
|
||||
|
||||
//Re-Render Sesh List
|
||||
this.renderSeshList();
|
||||
}
|
||||
|
||||
renderMessages(){
|
||||
|
|
@ -257,7 +257,6 @@ class pmPanel extends panelObj{
|
|||
*/
|
||||
renderMessage(message){
|
||||
//If we have an empty message
|
||||
console.log(message);
|
||||
if(message.msg == null || message.msg == ''){
|
||||
//BAIL!!
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue