mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-10-02 08:50:11 +02:00
Only show critical toasts during onboarding (#810)
This commit is contained in:
parent
4d74f23c82
commit
b20e3ce52c
@ -58,8 +58,6 @@ export default function CustomLogo({ setHeader, setForwardBtn, setBackBtn }) {
|
|||||||
|
|
||||||
const logoURL = await System.fetchLogo();
|
const logoURL = await System.fetchLogo();
|
||||||
_setLogo(logoURL);
|
_setLogo(logoURL);
|
||||||
|
|
||||||
showToast("Image uploaded successfully.", "success", { clear: true });
|
|
||||||
setIsDefaultLogo(false);
|
setIsDefaultLogo(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -79,8 +77,6 @@ export default function CustomLogo({ setHeader, setForwardBtn, setBackBtn }) {
|
|||||||
|
|
||||||
const logoURL = await System.fetchLogo();
|
const logoURL = await System.fetchLogo();
|
||||||
_setLogo(logoURL);
|
_setLogo(logoURL);
|
||||||
|
|
||||||
showToast("Image successfully removed.", "success", { clear: true });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -95,9 +95,6 @@ export default function EmbeddingPreference({
|
|||||||
showToast(`Failed to save embedding settings: ${error}`, "error");
|
showToast(`Failed to save embedding settings: ${error}`, "error");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
showToast("Embedder settings saved successfully.", "success", {
|
|
||||||
clear: true,
|
|
||||||
});
|
|
||||||
navigate(paths.onboarding.vectorDatabase());
|
navigate(paths.onboarding.vectorDatabase());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -180,7 +180,6 @@ export default function LLMPreference({
|
|||||||
showToast(`Failed to save LLM settings: ${error}`, "error");
|
showToast(`Failed to save LLM settings: ${error}`, "error");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
showToast("LLM settings saved successfully.", "success", { clear: true });
|
|
||||||
navigate(paths.onboarding.embeddingPreference());
|
navigate(paths.onboarding.embeddingPreference());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -124,8 +124,6 @@ const JustMe = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
showToast("Password set successfully!", "success", { clear: true });
|
|
||||||
|
|
||||||
// Auto-request token with password that was just set so they
|
// Auto-request token with password that was just set so they
|
||||||
// are not redirected to login after completion.
|
// are not redirected to login after completion.
|
||||||
const { token } = await System.requestToken({
|
const { token } = await System.requestToken({
|
||||||
@ -245,9 +243,7 @@ const MyTeam = ({ setMultiUserLoginValid, myTeamSubmitRef, navigate }) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
showToast("Multi-user login enabled.", "success", { clear: true });
|
|
||||||
navigate(paths.onboarding.dataHandling());
|
navigate(paths.onboarding.dataHandling());
|
||||||
|
|
||||||
// Auto-request token with credentials that was just set so they
|
// Auto-request token with credentials that was just set so they
|
||||||
// are not redirected to login after completion.
|
// are not redirected to login after completion.
|
||||||
const { user, token } = await System.requestToken(data);
|
const { user, token } = await System.requestToken(data);
|
||||||
|
@ -133,9 +133,6 @@ export default function VectorDatabaseConnection({
|
|||||||
showToast(`Failed to save Vector Database settings: ${error}`, "error");
|
showToast(`Failed to save Vector Database settings: ${error}`, "error");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
showToast("Vector Database settings saved successfully.", "success", {
|
|
||||||
clear: true,
|
|
||||||
});
|
|
||||||
navigate(paths.onboarding.customLogo());
|
navigate(paths.onboarding.customLogo());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user