mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Hightlight groups & friends
This commit is contained in:
parent
1e60114af3
commit
01d244386f
@ -357,6 +357,9 @@ const SidebarMain = {
|
|||||||
flex: 2,
|
flex: 2,
|
||||||
height: "100%"
|
height: "100%"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Highlight active element
|
||||||
|
SidebarMain.refreshActiveElement()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -373,6 +376,8 @@ const SidebarMain = {
|
|||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "li"
|
type: "li"
|
||||||
});
|
});
|
||||||
|
li.setAttribute("data-membership-user-id", user.id)
|
||||||
|
|
||||||
|
|
||||||
let a = createElem2({
|
let a = createElem2({
|
||||||
appendTo: li,
|
appendTo: li,
|
||||||
@ -471,6 +476,7 @@ const SidebarMain = {
|
|||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "li"
|
type: "li"
|
||||||
});
|
});
|
||||||
|
li.setAttribute("data-membership-group-id", group.id)
|
||||||
|
|
||||||
let a = createElem2({
|
let a = createElem2({
|
||||||
appendTo: li,
|
appendTo: li,
|
||||||
@ -580,6 +586,14 @@ const SidebarMain = {
|
|||||||
|
|
||||||
let query = false;
|
let query = false;
|
||||||
|
|
||||||
|
// Friends
|
||||||
|
if(currPage.startsWith("user/"))
|
||||||
|
query = "[data-membership-user-id=\""+currPage.split("/")[1].split("#")[0]+"\"]"
|
||||||
|
|
||||||
|
// Groups
|
||||||
|
if(currPage.startsWith("groups/"))
|
||||||
|
query = "[data-membership-group-id=\""+currPage.split("/")[1].split("#")[0]+"\"]"
|
||||||
|
|
||||||
// Conversations
|
// Conversations
|
||||||
if(currPage.startsWith("conversations/"))
|
if(currPage.startsWith("conversations/"))
|
||||||
query = "[data-membership-conv-id=\""+currPage.split("/")[1].split("#")[0]+"\"]"
|
query = "[data-membership-conv-id=\""+currPage.split("/")[1].split("#")[0]+"\"]"
|
||||||
|
Loading…
Reference in New Issue
Block a user