Skip to content
Snippets Groups Projects
Commit 51b10344 authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

fix: button appearances

parent 25092510
No related branches found
No related tags found
3 merge requests!5feature: add config support for community list display,!4Alpha,!2Draft: New permissions
Pipeline #16445 failed with stage
in 12 seconds
......@@ -24,8 +24,16 @@ import("./utils.js").then((utils) => {
"@context": this.context,
"user_set": this.currentMembers
}
sibStore.patch(current_res, current_resource_id);
await sibStore.patch(current_res, current_resource_id);
this.populate();
let addCommunityMember = this.element.parentElement.querySelector(':scope > communities-add-member solid-ac-checker');
if (addCommunityMember) {
addCommunityMember.removeAttribute('hidden');
}
let editChecker = this.element.parentElement.querySelector(':scope > solid-ac-checker');
editChecker.component.element.removeAttribute('hidden');
editChecker.removeAttribute('hidden');
}
},
......@@ -48,8 +56,17 @@ import("./utils.js").then((utils) => {
"@context": this.context,
"user_set": current_members
}
sibStore.patch(current_res, current_resource['@id']);
await sibStore.patch(current_res, current_resource['@id']);
this.populate();
let addCommunityMember = this.element.parentElement.querySelector(':scope > communities-add-member solid-ac-checker');
if (addCommunityMember) {
addCommunityMember.setAttribute('hidden', true);
}
let editChecker = this.element.parentElement.querySelector(':scope > solid-ac-checker');
editChecker.component.element.setAttribute('hidden', true);
editChecker.setAttribute('hidden', true);
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment