Fixed some minor linking/ref issues with new ai setup
This commit is contained in:
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 41 KiB |
@@ -483,8 +483,15 @@ const EditWorkflow = (props) => {
|
|||||||
|
|
||||||
// check AI enabled for local installations (not cloud)
|
// check AI enabled for local installations (not cloud)
|
||||||
if (!isCloud && (!userdata?.ai_enabled || userdata?.ai_enabled === false)) {
|
if (!isCloud && (!userdata?.ai_enabled || userdata?.ai_enabled === false)) {
|
||||||
toast.warn("Local AI is not enabled. Setup required: https://shuffler.io/docs/AI-Features");
|
// Toast with onclick
|
||||||
return;
|
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
|
// Check if description is provided OR image is uploaded for new workflows
|
||||||
|
|||||||
@@ -1487,7 +1487,7 @@ const Workflows2 = (props) => {
|
|||||||
For self-hosted setups, see the{" "}
|
For self-hosted setups, see the{" "}
|
||||||
<Box
|
<Box
|
||||||
component="a"
|
component="a"
|
||||||
href="https://shuffler.io/docs/AI"
|
href="/docs/AI#self-hosting-models"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
sx={{ color: "#ff8544", textDecoration: "underline" }}
|
sx={{ color: "#ff8544", textDecoration: "underline" }}
|
||||||
|
|||||||
Reference in New Issue
Block a user