Skip to content

Commit

Permalink
Improve data export
Browse files Browse the repository at this point in the history
  • Loading branch information
SRichner committed Mar 6, 2024
1 parent 5cfd1f2 commit 201761c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/electron/src/components/DataExportUserInputTracker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,27 @@ const emitChange = () => {
</div>
<div class="mt-4 flex w-1/3 flex-col">
<div class="form-control">
<label class="label cursor-pointer">
<span class="label-text">Share data as-is</span>
<label class="label flex cursor-pointer items-center justify-start">
<input
v-model="selectedOption"
type="radio"
:value="DataExportType.All"
class="radio checked:bg-blue-500"
@change="emitChange"
/>
<span class="label-text ml-2">Share data as-is</span>
</label>
</div>
<div class="form-control">
<label class="label cursor-pointer">
<span class="label-text">Do not share this data</span>
<label class="label flex cursor-pointer items-center justify-start">
<input
v-model="selectedOption"
type="radio"
:value="DataExportType.None"
class="radio checked:bg-blue-500"
@change="emitChange"
/>
<span class="label-text ml-2">Do not share this data</span>
</label>
</div>
</div>
Expand Down
20 changes: 10 additions & 10 deletions src/electron/src/components/DataExportWindowActivityTracker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,41 +44,41 @@ const emitObfuscateSampleData = async () => {
</div>
<div class="mt-4 flex w-1/2 flex-col">
<div class="form-control">
<label class="label cursor-pointer">
<span class="label-text">Share data as-is</span>
<label class="label flex cursor-pointer items-center justify-start">
<input
v-model="selectedOption"
type="radio"
:value="DataExportType.All"
class="radio checked:bg-blue-500"
@change="emitOptionChanged"
/>
<span class="label-text ml-2">Share data as-is</span>
</label>
</div>
<div class="form-control">
<label class="label cursor-pointer">
<span class="label-text">Obfuscate potentially sensitive data</span>
<label class="label flex cursor-pointer items-center justify-start">
<input
v-model="selectedOption"
type="radio"
:value="DataExportType.Obfuscate"
class="radio checked:bg-blue-500"
@change="emitOptionChanged"
/>
<span class="label-text ml-2">Obfuscate potentially sensitive data</span>
</label>
</div>
<div class="form-control">
<label class="label cursor-pointer">
<span class="label-text"
>Only obfuscate data with the following (comma-separated) list of terms</span
>
<label class="label flex cursor-pointer items-center justify-start">
<input
v-model="selectedOption"
type="radio"
:value="DataExportType.ObfuscateWithTerms"
class="radio checked:bg-blue-500"
@change="emitOptionChanged"
/>
<span class="label-text ml-2"
>Only obfuscate data with the following (comma-separated) list of terms</span
>
</label>
</div>
<div v-if="selectedOption === DataExportType.ObfuscateWithTerms">
Expand All @@ -97,15 +97,15 @@ const emitObfuscateSampleData = async () => {
</div>
</div>
<div class="form-control">
<label class="label cursor-pointer">
<span class="label-text">Do not share this data</span>
<label class="label flex cursor-pointer items-center justify-start">
<input
v-model="selectedOption"
type="radio"
:value="DataExportType.None"
class="radio checked:bg-blue-500"
@change="emitOptionChanged"
/>
<span class="label-text ml-2">Do not share this data</span>
</label>
</div>
</div>
Expand Down

0 comments on commit 201761c

Please sign in to comment.