mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
added back commented out marketplace logic
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user