Skip to content

Commit

Permalink
fix: add missing feature flag to log dump zip action
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzwa committed Jul 4, 2023
1 parent e788970 commit 83fd9c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Settings/DiagnosticsSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</v-list-item-content>
</v-list-item>
<v-divider />
<v-list-item>
<v-list-item v-if="hasLogDumpFeature">
<v-list-item-content>
<v-list-item-title>Logs Dump</v-list-item-title>
<v-list-item-subtitle>
Expand Down Expand Up @@ -58,11 +58,13 @@ import { ServerPrivateService } from "../../backend/server-private.service";
const settingsStore = useSettingsStore();
const hasAnonymousDiagnosticsToggleFeature = ref(false);
const hasLogDumpFeature = ref(false);
const sentryDiagnosticsEnabled = ref(false);
onMounted(async () => {
const features = await AppService.getFeatures();
hasAnonymousDiagnosticsToggleFeature.value =
features.anonymousDiagnosticsToggle?.available || false;
hasLogDumpFeature.value = features.logDumpZip?.available || false;
await settingsStore.loadSettings();
sentryDiagnosticsEnabled.value = settingsStore.serverSettings?.sentryDiagnosticsEnabled || false;
Expand Down

0 comments on commit 83fd9c3

Please sign in to comment.