mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Display a message when the user does not have latest post.
This commit is contained in:
parent
65d75243ec
commit
996d0207ab
@ -73,10 +73,16 @@ ComunicWeb.pages.latestPosts.main = {
|
||||
|
||||
//Process the list of posts
|
||||
for (let index = 0; index < list.length; index++) {
|
||||
|
||||
//Display the post
|
||||
ComunicWeb.components.posts.ui.display_post(list[index], boxBody);
|
||||
}
|
||||
|
||||
//Check if there aren't any post to display
|
||||
if(list.length == 0){
|
||||
|
||||
var message = ComunicWeb.common.messages.createCalloutElem("No post to display", "Posts from you and your friend will appear here...", "info");
|
||||
message.className += " noLatestPosts";
|
||||
boxBody.appendChild(message);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user