mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Avatar can be dynamicaly changed
This commit is contained in:
		@@ -95,6 +95,14 @@ ComunicWeb.components.menuBar.authenticated = {
 | 
			
		||||
		userNameElem.innerHTML = "Loading...";
 | 
			
		||||
 | 
			
		||||
		//Make a request to get informations about the user
 | 
			
		||||
		ComunicWeb.user.getUserInfos.getUserInfos("current", (function(userInfos){
 | 
			
		||||
 | 
			
		||||
			//Change user name
 | 
			
		||||
			userNameElem.innerHTML = userInfos.firstName + " "+ userInfos.lastName;
 | 
			
		||||
 | 
			
		||||
			//Change avatar url
 | 
			
		||||
			userimage.src = userInfos.accountImage;
 | 
			
		||||
 | 
			
		||||
		}));
 | 
			
		||||
	},
 | 
			
		||||
};
 | 
			
		||||
@@ -13,6 +13,9 @@ ComunicWeb.pages.home.landingPage = {
 | 
			
		||||
        //Log action
 | 
			
		||||
        ComunicWeb.debug.logMessage("Open home landing page.");
 | 
			
		||||
 | 
			
		||||
        //Change page title
 | 
			
		||||
        document.title = "Comunic, a transparent social network";
 | 
			
		||||
 | 
			
		||||
        //Prepare additional data
 | 
			
		||||
        var additionalData = {};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user