added reject all button to comply with gdpr

closes #3409
This commit is contained in:
Miodec 2022-08-22 15:09:13 +02:00
parent b899cf65a8
commit 5b378cc606
3 changed files with 15 additions and 5 deletions

View file

@ -451,9 +451,11 @@
.buttons {
margin-top: 0.25rem;
display: grid;
grid-auto-flow: column;
gap: 1rem;
grid-template-columns: 1fr 2.25rem;
grid-template-columns: 1fr 1fr;
.openSettings {
grid-column: span 2;
}
}
.settings {
display: grid;

View file

@ -87,6 +87,15 @@ $("#cookiePopup .acceptAll").on("click", () => {
hide();
});
$("#cookiePopup .rejectAll").on("click", () => {
const accepted = {
security: true,
analytics: false,
};
setAcceptedObject(accepted);
hide();
});
$("#cookiePopup .acceptSelected").on("click", () => {
const analytics = $("#cookiePopup .cookie.analytics input").prop("checked");
const accepted = {

View file

@ -23,9 +23,8 @@
</div>
<div class="buttons">
<div class="button active acceptAll">Accept all</div>
<div class="button openSettings">
<i class="fas far fa-cog"></i>
</div>
<div class="button rejectAll">Reject all</div>
<div class="button openSettings">More options</div>
</div>
</div>
<div class="settings hidden">