From 5adbd98f516c58c0ea8db883e8ef461452fd1788 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Pasquier <contact@jbpasquier.eu>
Date: Tue, 29 Oct 2019 15:15:02 +0100
Subject: [PATCH] fix: path template & js leave button

---
 src/page-admin-circles.pug | 2 +-
 src/scripts/index.js       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/page-admin-circles.pug b/src/page-admin-circles.pug
index 2b302d49..5d2bf04b 100644
--- a/src/page-admin-circles.pug
+++ b/src/page-admin-circles.pug
@@ -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
diff --git a/src/scripts/index.js b/src/scripts/index.js
index edb1ecc2..0e786f72 100644
--- a/src/scripts/index.js
+++ b/src/scripts/index.js
@@ -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
-- 
GitLab