Commit 01ba4feb authored by Alexandre's avatar Alexandre

feature: hidding edit and close action buttons #32

parent 6e953de5
......@@ -35,7 +35,7 @@
</button>
<sib-ac-checker permission="acl:Write" bind-resources>
<sib-link next="action-edit" bind-resources>Éditer l'action</sib-link>
<sib-link id="edit-action" next="action-edit" bind-resources>Éditer l'action</sib-link>
<button id="close-action" data-micromodal-trigger="action-closing-validation">Fermer l'action</button>
</sib-ac-checker>
</div>
......@@ -110,6 +110,7 @@
membershipButton.classList.add("show");
if (moment().diff(moment(action.date, "YYYY-MM-DD"), "days") > 0) {
membershipButton.classList.add("is-passed");
actionDetail.querySelectorAll("#close-action, #edit-action").forEach(el => el.setAttribute("hidden", true));
membershipButton.classList.remove("is-full", "is-member");
}
else if (membersId.includes(membershipButton.getAttribute("user-id"))) {// Member of...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment