File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
daemon/web/src/lib/components Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 2222 <p >Error getting analysis report: {entry .analysis_report }</p >
2323 {:else }
2424 {@const metadata : ReportMetadata = entry .analysis_report .metadata }
25+ {@const numWarnings : number = entry .get_num_warnings () || 0 }
2526 <div class =" flex flex-col gap-2" >
26- {#if ! current }
27- {@const numWarnings : number = entry .get_num_warnings () || 0 }
27+ {#if !! numWarnings || ! current }
2828 <div class =" flex flex-row justify-between items-center" >
29- {#if numWarnings }
29+ {#if !! numWarnings }
3030 <div
3131 class =" text-red-700 border-red-500 border rounded-lg text-blue-600 px-2 py-1 mr-12"
3232 >
3333 Your Rayhunter device raised {` ${numWarnings } ` } warning{` ${
34- numWarnings > 0 ? ' s' : ' '
34+ numWarnings > 1 ? ' s' : ' '
3535 } ` }!
3636 <a
37- href =" https://efforg.github.io/rayhunter/faq.html#help-rayhunters-line-is-redorangeyellowdotteddashed-what-should-i-do "
37+ href =" https://efforg.github.io/rayhunter/faq.html#red "
3838 class =" text-blue-600 underline" >Read the FAQ</a
3939 > to learn what you can do about it
4040 </div >
41- {:else }
42- <div ></div >
4341 {/if }
44- <ReAnalyzeButton {entry } {manager } />
42+ {#if ! current }
43+ <ReAnalyzeButton {entry } {manager } />
44+ {/if }
4545 </div >
4646 {/if }
4747 {#if entry .analysis_report .rows .length > 0 }
You can’t perform that action at this time.
0 commit comments