From 397fecc7305460350264ace8883d3e70991c3957 Mon Sep 17 00:00:00 2001 From: Maarten Segers Date: Tue, 14 May 2024 13:42:18 +0000 Subject: [PATCH] Set approved class --- webcomponents/besluiten-detail/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webcomponents/besluiten-detail/main.js b/webcomponents/besluiten-detail/main.js index ab62b29..971486e 100644 --- a/webcomponents/besluiten-detail/main.js +++ b/webcomponents/besluiten-detail/main.js @@ -13,7 +13,7 @@ class BesluitenDetail extends HTMLElement { this.datum = this.formatDate(this.getAttribute('datum')); this.url = this.getAttribute('url'); this.status = this.getAttribute('status'); - this.approved = this.getAttribute('status') == 'Goedgekeurd'; + this.approved = ['Goedgekeurd', 'Behandeld'].includes(this.getAttribute('status'));; this.innerHTML += this.createDetail(); } } @@ -35,7 +35,7 @@ class BesluitenDetail extends HTMLElement {
Datum van de zitting:
${this.datum}
- ${this.status} + ${this.status} `);