Skip to content

Commit

Permalink
feat(rng-diff): new state '-'
Browse files Browse the repository at this point in the history
all value except non-zero number (meaning that 0 and other types) will be classified as '-'
  • Loading branch information
ElonH committed Jun 2, 2020
1 parent 42d5f4c commit 077a7d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/diff/diff.component.ts
Expand Up @@ -6,8 +6,8 @@ import { FormatBytes } from '../../utils/format-bytes';
template: `
<span> {{ (val < 0 ? '-' + FormatBytes(-val) : FormatBytes(val)) + suffic }} </span>
<nb-icon
[icon]="'arrow-' + (val < 0 ? 'down' : 'up')"
[status]="val < 0 ? 'danger' : 'success'"
[icon]="val < 0 ? 'arrow-down' : val > 0 ? 'arrow-up' : 'minus'"
[status]="val < 0 ? 'danger' : val > 0 ? 'success' : 'basic'"
>
</nb-icon>
`,
Expand Down

0 comments on commit 077a7d2

Please sign in to comment.