mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Start to display group conversation page
This commit is contained in:
		assets
js
pages
templates
pages
groups
sections
system/config
@@ -10,8 +10,9 @@ const GroupTabs = {
 | 
			
		||||
     * @param {AdvancedGroupInfo} group Group information
 | 
			
		||||
     * @param {HTMLElement} target Target
 | 
			
		||||
     * @param {String} activePage Current active page
 | 
			
		||||
     * @param {String} firstArg First argument passed after page (if any)
 | 
			
		||||
     */
 | 
			
		||||
    show: async function(group, target, activePage) {
 | 
			
		||||
    show: async function(group, target, activePage, firstArgument) {
 | 
			
		||||
        // Load template
 | 
			
		||||
		const tpl = await Page.loadHTMLTemplate("pages/groups/sections/GroupTabs.html");
 | 
			
		||||
		const el = document.createElement("div")
 | 
			
		||||
@@ -24,7 +25,9 @@ const GroupTabs = {
 | 
			
		||||
                return {
 | 
			
		||||
                    isAdmin: group.membership == "administrator",
 | 
			
		||||
                    canSeeMembers: group.is_members_list_public || group.membership == "administrator" || group.membership == "moderator",
 | 
			
		||||
                    activePage: activePage
 | 
			
		||||
                    activePage: activePage,
 | 
			
		||||
                    firstArgument: firstArgument,
 | 
			
		||||
                    conversations: group.conversations,
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user