Skip to content

Commit

Permalink
PROBE-219: Add status
Browse files Browse the repository at this point in the history
  • Loading branch information
MPParsley committed Sep 3, 2024
1 parent 72c8707 commit 6d53977
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webcomponents/reglementen-detail/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class ReglementenDetail extends HTMLElement {
this.datum = this.formatDate(this.getAttribute('datum'));
this.url = this.getAttribute('url');
this.type = this.getAttribute('type');
this.innerHTML += this.createDetail();
this.status = this.getAttribute('status');
this.status_green = ['Aanvaard tot de zitting als hoogdringend agendapunt', 'Goedgekeurd', 'Behandeld'].includes(this.getAttribute('status'));;
this.status_red = ['Afgekeurd', 'Afgevoerd', 'Geweigerd', 'Ingetrokken'].includes(this.getAttribute('status'));;
this.status_na = ['Gedeeltelijke ingetrokken', 'Verdaagd'].includes(this.getAttribute('status'));;
this.innerHTML += this.createDetail();
}
}

Expand All @@ -34,7 +34,7 @@ class ReglementenDetail extends HTMLElement {
</div>
<dl class="reglementen-detail__list">
<dt>Orgaan:</dt>
<dd>${this.orgaan}</dd>
<dd>${this.status}</dd>
<dt>Datum van bekendmaking:</dt>
<dd>${this.datum}</dd>
<dt>Type:</dt>
Expand All @@ -53,6 +53,7 @@ class ReglementenDetail extends HTMLElement {
this.url = reglement.url.value;
this.type = '@todo';
this.status = reglement.status.value || '';
this.approved = reglement.status.value == 'Goedgekeurd';
this.innerHTML += this.createDetail();
}

Expand Down

0 comments on commit 6d53977

Please sign in to comment.