diff --git a/frontend/src/pages/Admin/ExperimentalFeatures/Features/LiveSync/toggle.jsx b/frontend/src/pages/Admin/ExperimentalFeatures/Features/LiveSync/toggle.jsx index ce662ebe435..69a758d515b 100644 --- a/frontend/src/pages/Admin/ExperimentalFeatures/Features/LiveSync/toggle.jsx +++ b/frontend/src/pages/Admin/ExperimentalFeatures/Features/LiveSync/toggle.jsx @@ -5,7 +5,7 @@ import { ArrowSquareOut } from "@phosphor-icons/react"; import { useState } from "react"; import { Link } from "react-router-dom"; -export default function LiveSyncToggle({ enabled = false }) { +export default function LiveSyncToggle({ enabled = false, onToggle }) { const [status, setStatus] = useState(enabled); async function toggleFeatureFlag() { @@ -13,7 +13,7 @@ export default function LiveSyncToggle({ enabled = false }) { !status ); if (!updated) { - showToast(`Failed to update status of feature.`, "error", { + showToast("Failed to update status of feature.", "error", { clear: true, }); return false; @@ -27,60 +27,63 @@ export default function LiveSyncToggle({ enabled = false }) { "success", { clear: true } ); + onToggle(); } return ( -
+
Enable the ability to specify a document to be "watched". Watched document's content will be regularly fetched and updated in AnythingLLM.
-- Watched documents will automatically update the in all workspaces it - is referenced in at the same time of update. +
+ Watched documents will automatically update in all workspaces they + are referenced in at the same time of update.
-- this feature only applies to web-based content. eg: Websites, - Confluence, YouTube, and Github files. +
+ This feature only applies to web-based content, such as websites, + Confluence, YouTube, and GitHub files.
Experimental Features
+Select an experimental feature
+- Experimental Features -
+ {children} +- Enable and access experimental features of AnythingLLM. Features - here may change, move, or no longer exist at any time and support - for them is not guaranteed. While a feature is in preview it can - only be managed via this page. -
+