diff --git a/.vscode/settings.json b/.vscode/settings.json
index ab66c194..14c396fb 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,5 +1,6 @@
{
"cSpell.words": [
+ "Astra",
"Dockerized",
"Langchain",
"Milvus",
diff --git a/docker/.env.example b/docker/.env.example
index 0adabbdf..858e4098 100644
--- a/docker/.env.example
+++ b/docker/.env.example
@@ -103,6 +103,11 @@ GID='1000'
# ZILLIZ_ENDPOINT="https://sample.api.gcp-us-west1.zillizcloud.com"
# ZILLIZ_API_TOKEN=api-token-here
+# Enable all below if you are using vector database: Astra DB.
+# VECTOR_DB="astra"
+# ASTRA_DB_APPLICATION_TOKEN=
+# ASTRA_DB_ENDPOINT=
+
# CLOUD DEPLOYMENT VARIRABLES ONLY
# AUTH_TOKEN="hunter2" # This is the password to your application if remote hosting.
diff --git a/frontend/src/components/Modals/MangeWorkspace/Settings/index.jsx b/frontend/src/components/Modals/MangeWorkspace/Settings/index.jsx
index b288dc6c..a9471388 100644
--- a/frontend/src/components/Modals/MangeWorkspace/Settings/index.jsx
+++ b/frontend/src/components/Modals/MangeWorkspace/Settings/index.jsx
@@ -44,6 +44,7 @@ export default function WorkspaceSettings({ active, workspace, settings }) {
const formEl = useRef(null);
const [saving, setSaving] = useState(false);
const [hasChanges, setHasChanges] = useState(false);
+ const [deleting, setDeleting] = useState(false);
const defaults = recommendedSettings(settings?.LLMProvider);
const handleUpdate = async (e) => {
@@ -72,7 +73,15 @@ export default function WorkspaceSettings({ active, workspace, settings }) {
)
)
return false;
- await Workspace.delete(workspace.slug);
+
+ setDeleting(true);
+ const success = await Workspace.delete(workspace.slug);
+ if (!success) {
+ showToast("Workspace could not be deleted!", "error", { clear: true });
+ setDeleting(false);
+ return;
+ }
+
workspace.slug === slug
? (window.location = paths.home())
: window.location.reload();
@@ -310,7 +319,11 @@ export default function WorkspaceSettings({ active, workspace, settings }) {
-
+
{hasChanges && (