Skip to content

Commit

Permalink
fixed reactive issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunlumbcgov committed Nov 22, 2024
1 parent fbed336 commit 4b8d614
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
4 changes: 3 additions & 1 deletion frontend/src/components/Batch/Forms/DistrunUserForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,11 @@ export default {
});
watch(group, (newValue) => {
batchRequestFormStore.who = newValue;
if (newValue == "Ministry of Advanced Education") {
batchRequestFormStore.who = newValue;
batchRequestFormStore.distribution = "User";
} else {
batchRequestFormStore.distribution = "BC Mail";
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,32 @@
required
variant="outlined"
></v-text-field>
</v-col> </v-row
><v-row>
</v-col>
</v-row>
<v-row v-if="getDistribution !== 'User'">
<v-col sm="2"><strong>Where</strong></v-col>
<v-col sm="10" md="4">
<v-select
v-model="distribution"
:items="[
'BC Mail',
'Download',
{ title: 'User: ' + userFullName, value: 'User' },
]"
v-model="getDistribution"
:items="['BC Mail', 'Download']"
item-title="title"
item-value="value"
label="Where"
variant="outlined"
require
hide-details
:disabled="distribution === 'User'"
></v-select>
</v-col>

<v-col>
<template #bottom></template>
</v-col>
</v-row>
<v-card v-if="distribution === 'User'" class="mt-4" title="Mailing Address">
<v-card
v-if="getDistribution === 'User'"
class="mt-4"
title="Mailing Address"
>
<v-card-text>
<strong>{{ userFullName }}</strong
><br />
Expand Down Expand Up @@ -126,6 +126,7 @@ export default {
"getBatchRunTime",
"getBatchRunCustomDate",
"getbatchRunCustomTime",
"getDistribution",
"getGroup",
"getUserDistributionAddress",
]),
Expand Down

0 comments on commit 4b8d614

Please sign in to comment.