Updated cloud mode checks.

This commit is contained in:
Mike Cao committed 2025-09-22 13:09:07 -07:00
1 parent d8075764e2
commit 9897c725de
16 files changed
+23 -81

No files matched your search

+2 -2
View File
@@ -16,12 +16,12 @@ export function SettingsButton() {
const { formatMessage, labels } = useMessages();
const { user } = useLoginQuery();
const { router, renderUrl } = useNavigation();
const { cloudMode, cloudUrl } = useConfig();
const { cloudMode } = useConfig();
const handleAction = (id: Key) => {
if (id === 'settings') {
if (cloudMode) {
window.location.href = `${cloudUrl}/settings`;
window.location.href = `/settings`;
return;
}
}