Skip to content

Commit 335d84d

Browse files
authored
Hide option in support page & Fix init-dev-env tool (#2583)
1 parent 53fda26 commit 335d84d

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

crates/defguard_core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ pub async fn init_dev_env(config: &DefGuardConfig) {
740740
settings.public_proxy_url = config
741741
.enrollment_url
742742
.clone()
743-
.unwrap_or(Url::parse("http://127.0.0.1:8000").unwrap())
743+
.unwrap_or(Url::parse("http://localhost:8080").unwrap())
744744
.to_string();
745745
settings.defguard_url = config.url.clone().unwrap().to_string();
746746
update_current_settings(&pool, settings)

web/src/pages/SupportPage/SupportPage.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { MarkedSectionHeader } from '../../shared/defguard-ui/components/MarkedS
1616
import docIllustration from '../../shared/defguard-ui/components/SectionSelect/assets/manual-user.png';
1717
import { SizedBox } from '../../shared/defguard-ui/components/SizedBox/SizedBox';
1818
import { TextStyle, ThemeSpacing, ThemeVariable } from '../../shared/defguard-ui/types';
19-
import { downloadFile, downloadText } from '../../shared/utils/download';
19+
import { downloadFile } from '../../shared/utils/download';
2020

2121
export const SupportPage = () => {
2222
return (
@@ -104,14 +104,6 @@ export const SupportPage = () => {
104104
downloadFile(blob, `defguard-support-data-${now}`, 'json');
105105
},
106106
},
107-
{
108-
text: m.support_page_bug_btn_download_logs(),
109-
onClick: async () => {
110-
const res = await api.support.getLogs();
111-
const now = new Date().toISOString().replace(/[:.]/g, '-');
112-
downloadText(res.data, `defguard-logs-${now}`, 'txt');
113-
},
114-
},
115107
],
116108
},
117109
]}

0 commit comments

Comments
 (0)