Fixed some minor linking/ref issues with new ai setup

This commit is contained in:
Frikky
2025-08-27 00:13:36 +02:00
parent 249b8dbf2c
commit 8f0d91b224
3 changed files with 95 additions and 3 deletions
+9 -2
View File
@@ -483,8 +483,15 @@ const EditWorkflow = (props) => {
// check AI enabled for local installations (not cloud)
if (!isCloud && (!userdata?.ai_enabled || userdata?.ai_enabled === false)) {
toast.warn("Local AI is not enabled. Setup required: https://shuffler.io/docs/AI-Features");
return;
// Toast with onclick
toast.info("AI credits haven't been applied and no Local AI is not enabled. Click here to set it up!", {
autoClose: 10000,
onClick: () => {
window.open("/docs/AI#self-hosting-models", "_blank")
}
})
return
}
// Check if description is provided OR image is uploaded for new workflows