fix(prospecting): inline isPositiveFlag check to avoid scope issue

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-30 21:27:58 +02:00
parent 28b08580c8
commit b306a5e8f4

View File

@@ -119,10 +119,10 @@
<div class="flex items-center justify-between text-xs">
<span class="text-gray-600 dark:text-gray-400" x-text="flag.replaceAll('_', ' ')"></span>
<span class="font-semibold px-1.5 py-0.5 rounded"
:class="isPositiveFlag(flag)
:class="['has_website','has_contacts','has_email','has_phone','has_ssl','modern_cms','fast_site','mobile_friendly'].includes(flag)
? 'text-green-700 bg-green-50 dark:text-green-300 dark:bg-green-900/30'
: 'text-red-700 bg-red-50 dark:text-red-300 dark:bg-red-900/30'"
x-text="(isPositiveFlag(flag) ? '+' : '-') + points"></span>
x-text="(['has_website','has_contacts','has_email','has_phone','has_ssl','modern_cms','fast_site','mobile_friendly'].includes(flag) ? '+' : '-') + points"></span>
</div>
</template>
</div>