fix: show presentation export dropdown on Lumiere tiles for Quarto projects
Build and Deploy Verso / deploy (push) Successful in 14m25s
Build and Deploy Verso / deploy (push) Successful in 14m25s
ProjectCard in the Lumiere tile view always showed CompileAndDownloadProjectPDFButtonTooltip, ignoring the project compiler. Quarto presentation projects need the DownloadPresentationButtonTooltip (HTML/PDF dropdown) instead, matching the logic already in actions-cell.tsx and actions-dropdown.tsx. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -25,6 +25,7 @@ import OLFormCheckbox from '@/shared/components/ol/ol-form-checkbox'
|
||||
import { CopyProjectButtonTooltip } from './table/cells/action-buttons/copy-project-button'
|
||||
import { DownloadProjectButtonTooltip } from './table/cells/action-buttons/download-project-button'
|
||||
import { CompileAndDownloadProjectPDFButtonTooltip } from './table/cells/action-buttons/compile-and-download-project-pdf-button'
|
||||
import { DownloadPresentationButtonTooltip } from './table/cells/action-buttons/download-presentation-button'
|
||||
import { ArchiveProjectButtonTooltip } from './table/cells/action-buttons/archive-project-button'
|
||||
import { TrashProjectButtonTooltip } from './table/cells/action-buttons/trash-project-button'
|
||||
import FormatCell from './table/cells/format-cell'
|
||||
@@ -173,7 +174,11 @@ const ProjectCard = memo(function ProjectCard({
|
||||
<div className="lumiere-card-actions">
|
||||
<CopyProjectButtonTooltip project={project} />
|
||||
<DownloadProjectButtonTooltip project={project} />
|
||||
{project.compiler === 'quarto' ? (
|
||||
<DownloadPresentationButtonTooltip project={project} />
|
||||
) : (
|
||||
<CompileAndDownloadProjectPDFButtonTooltip project={project} />
|
||||
)}
|
||||
<ArchiveProjectButtonTooltip project={project} />
|
||||
<TrashProjectButtonTooltip project={project} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user