Skip to content

Commit

Permalink
filters by active proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
capetillo committed Nov 19, 2024
1 parent 6d72359 commit d428f0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Global/ProposalDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const emit = defineEmits(['selectionsComplete'])
const userDataStore = useUserDataStore()
const proposals = userDataStore.profile.proposals
const activeProposals = proposals.filter(proposal => proposal.current === true)
const selectedProposal = ref()
Expand All @@ -20,7 +21,7 @@ watch(selectedProposal, (newValue) => {
<div>
<label for="proposalSelect">Select a proposal:</label>
<select id="proposalSelect" v-model="selectedProposal">
<option v-for="proposal in proposals" :key="proposal.id" :value="proposal.id">
<option v-for="proposal in activeProposals" :key="proposal.id" :value="proposal.id">
{{ proposal.id }}
</option>
</select>
Expand Down

0 comments on commit d428f0d

Please sign in to comment.