Skip to content

Commit

Permalink
Refactor export wizard summary
Browse files Browse the repository at this point in the history
To conditionally show file name input and include data checkbox
  • Loading branch information
davelopez committed Sep 15, 2024
1 parent d160178 commit f6dd91d
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ const exportButtonLabel = computed(() => {
}
});
const needsFileName = computed(
() => exportData.destination === "remote-source" || exportData.destination === "rdm-repository"
);
const canIncludeData = computed(() => exportData.exportPluginFormat !== "bco");
const exportDestinationSummary = computed(() => {
const exportDestination = exportDestinationTargets.value.find(
(target) => target.destination === exportData.destination
Expand Down Expand Up @@ -423,7 +429,7 @@ const stepsGridColumnsTemplate = computed(() => {

<div v-if="stepper.isCurrent('export-summary')">
<BFormGroup
v-if="exportData.destination !== 'download'"
v-if="needsFileName"
label-for="exported-file-name"
:description="`Give the exported file a name.`"
class="mt-3">
Expand All @@ -434,7 +440,11 @@ const stepsGridColumnsTemplate = computed(() => {
required />
</BFormGroup>

<BFormCheckbox id="include-data" v-model="exportData.includeData" switch>
<BFormCheckbox
v-if="canIncludeData"
id="include-data"
v-model="exportData.includeData"
switch>
Include data files in the export package.
</BFormCheckbox>

Expand Down

0 comments on commit f6dd91d

Please sign in to comment.