project-list: show plain 'Quarto' badge when quartoFlavor is unset
Build and Deploy Verso / deploy (push) Successful in 13m55s
Build and Deploy Verso / deploy (push) Successful in 13m55s
Existing projects have no quartoFlavor value in the database (new field), so defaulting to 'Quarto PDF' incorrectly labelled all of them. Show the plain 'Quarto' label until the first compile sets the flavor. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -16,7 +16,10 @@ function formatLabel(
|
|||||||
if (quartoFlavor === 'revealjs') {
|
if (quartoFlavor === 'revealjs') {
|
||||||
return { label: 'Quarto Slides', variant: 'quarto-slides' }
|
return { label: 'Quarto Slides', variant: 'quarto-slides' }
|
||||||
}
|
}
|
||||||
return { label: 'Quarto PDF', variant: 'quarto' }
|
if (quartoFlavor === 'pdf') {
|
||||||
|
return { label: 'Quarto PDF', variant: 'quarto' }
|
||||||
|
}
|
||||||
|
return { label: 'Quarto', variant: 'quarto' }
|
||||||
case 'typst':
|
case 'typst':
|
||||||
return { label: 'Typst', variant: 'typst' }
|
return { label: 'Typst', variant: 'typst' }
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user