added back commented out marketplace logic

This commit is contained in:
Adam Gough
2025-05-23 16:17:00 -07:00
parent 5de5ff5baa
commit 43d60e9670

View File

@@ -167,6 +167,12 @@ export function ControlBar() {
return !!marketplaceData
}
// // Check if the current user is the owner of the published workflow
// const isWorkflowOwner = () => {
// const marketplaceData = getMarketplaceData()
// return marketplaceData?.status === 'owner'
// }
// Get deployment status from registry
const deploymentStatus = useWorkflowRegistry((state) =>
state.getWorkflowDeploymentStatus(activeWorkflowId)
@@ -409,6 +415,23 @@ export function ControlBar() {
removeWorkflow(activeWorkflowId)
}
// /**
// * Handle opening marketplace modal or showing published status
// */
// const handlePublishWorkflow = async () => {
// if (!activeWorkflowId) return
// // If already published, show marketplace modal with info instead of notifications
// const isPublished = isPublishedToMarketplace()
// if (isPublished) {
// setIsMarketplaceModalOpen(true)
// return
// }
// // If not published, open the modal to start the publishing process
// setIsMarketplaceModalOpen(true)
// }
/**
* Handle multiple workflow runs
*/