mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Added no unread conversations message
This commit is contained in:
parent
e2eca704cc
commit
d7c5830616
9
assets/css/components/conversations/unreadDropdown.css
Normal file
9
assets/css/components/conversations/unreadDropdown.css
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Unread conversations dropdown stylesheet
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
.no-unread-conversation-msg {
|
||||
padding: 20px;
|
||||
}
|
@ -234,5 +234,18 @@ ComunicWeb.components.conversations.unreadDropdown = {
|
||||
}
|
||||
}
|
||||
|
||||
//Display a specific message if there is not any new conversation
|
||||
if(conversations.length == 0){
|
||||
|
||||
//Display a message in the target
|
||||
createElem2({
|
||||
appendTo: target,
|
||||
type: "p",
|
||||
class: "no-unread-conversation-msg",
|
||||
innerHTML: "You do not have any unread messages in the conversations you are following..."
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
}
|
@ -127,6 +127,7 @@ class Dev {
|
||||
"css/components/conversations/manager.css",
|
||||
"css/components/conversations/windows.css",
|
||||
"css/components/conversations/list.css",
|
||||
"css/components/conversations/unreadDropdown.css",
|
||||
|
||||
//User selector stylesheet
|
||||
"css/components/userSelect/userSelect.css",
|
||||
|
Loading…
Reference in New Issue
Block a user