Skip to content
Snippets Groups Projects
Verified Commit 5adbd98f authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

fix: path template & js leave button

parent 7e0653f1
No related branches found
No related tags found
1 merge request!77Circle
......@@ -33,7 +33,7 @@
set-user-id-select="user"
)
include hd-user-avatar.pug
include templates/hd-user-avatar.pug
div.content-box__info
sib-link(class="right-btn", next="admin-circle-create") Create a new circle
......
......@@ -47,7 +47,7 @@ document.addEventListener('DOMContentLoaded', function (event) {
for(sibForm of document.querySelectorAll('[set-user-id-select]')) {
sibForm.addEventListener('populate', () => {
document.querySelectorAll('sib-form[submit-button^="Join"]').forEach(el=>el.style.display = 'none');
if(document.querySelectorAll('sib-ac-checker:not([hidden]) > sib-delete[data-label="^Leave"]').length == 0) {
if(document.querySelectorAll('sib-ac-checker:not([hidden]) > sib-delete[data-label^="Leave"]').length == 0) {
document.querySelectorAll('sib-form[submit-button^="Join"]').forEach(el=>el.style.display = 'inline-block');
}
// BUG: Populate event trigger before the view is fully loaded! - https://git.happy-dev.fr/startinblox/framework/sib-core/issues/521
......
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