Skip to content

Commit

Permalink
Set approved class
Browse files Browse the repository at this point in the history
  • Loading branch information
MPParsley committed May 14, 2024
1 parent e04bcc1 commit 397fecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webcomponents/besluiten-detail/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand All @@ -35,7 +35,7 @@ class BesluitenDetail extends HTMLElement {
<dt>Datum van de zitting:</dt>
<dd>${this.datum}</dd>
</dl>
<span class="resolutions-detail__status resolutions-detail__status--true" >${this.status}</span>
<span class="resolutions-detail__status resolutions-detail__status--${this.approved ? 'true' : 'false'}" >${this.status}</span>
</div>
</div>
`);
Expand Down

0 comments on commit 397fecc

Please sign in to comment.