mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
1da798d4b0
Ports a simplified `Primer::Beta::Counter` to Angular as `PrimerCounterLabelComponent` so the `.Counter` badge can be used from Angular templates. Supports `count`, `scheme`, `limit`, and `hideIfZero`; the Ruby `text` and `round` options are omitted.
9 lines
213 B
HTML
9 lines
213 B
HTML
<span
|
|
class="Counter"
|
|
[class.Counter--primary]="scheme() === 'primary'"
|
|
[class.Counter--secondary]="scheme() === 'secondary'"
|
|
[title]="titleText()"
|
|
[hidden]="hidden()"
|
|
[textContent]="value()"
|
|
></span>
|