-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8001 r50 allow adding user when not in results (#128)
* Added navigation for results * allow deploy from a specific branch * Revert "allow deploy from a specific branch" This reverts commit 9563343. * Clarified comment * Updated style and improved layout * Clear alerts before navigating to new screen
- Loading branch information
Showing
2 changed files
with
43 additions
and
14 deletions.
There are no files selected for viewing
39 changes: 36 additions & 3 deletions
39
frontend/src/components/coverage/enrollment/NameSearchResults.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,54 @@ | ||
<template> | ||
<div> | ||
<p>Number of Matches: {{ candidates.length }}</p> | ||
<div v-for="candidate in candidates"> | ||
<NameSearchCandidate :candidate="candidate" /> | ||
<p> | ||
Number of Matches: <b>{{ numberOfMatches }}</b> | ||
</p> | ||
<div v-if="hasCandidates"> | ||
<NameSearchCandidate v-for="candidate in candidates" :candidate="candidate" :key="candidate.phn" /> | ||
</div> | ||
<hr /> | ||
<p>If the individual for whom you are searching is not listed, you can select "Create New PHN" or "Refine Search"</p> | ||
<AppRow> | ||
<AppButton @click="registerWithoutPHN" mode="secondary" type="button">Create New PHN</AppButton> | ||
<AppButton @click="refineSearch" mode="secondary" type="button">Refine Search</AppButton> | ||
</AppRow> | ||
</div> | ||
</template> | ||
<script> | ||
import NameSearchCandidate from './NameSearchCandidate.vue' | ||
import { useAlertStore } from '../../../stores/alert' | ||
export default { | ||
name: 'NameSearchResults', | ||
props: { | ||
candidates: Array, | ||
}, | ||
emits: ['set-page-action'], | ||
components: { | ||
NameSearchCandidate, | ||
}, | ||
setup() { | ||
return { | ||
alertStore: useAlertStore(), | ||
} | ||
}, | ||
computed: { | ||
numberOfMatches() { | ||
return this.candidates ? this.candidates.length : 0 | ||
}, | ||
hasCandidates() { | ||
return this.candidates && this.candidates.length > 0 | ||
}, | ||
}, | ||
methods: { | ||
registerWithoutPHN() { | ||
this.alertStore.dismissAlert() | ||
this.$emit('set-page-action', 'REGISTRATION') | ||
}, | ||
refineSearch() { | ||
this.alertStore.dismissAlert() | ||
this.$emit('set-page-action', 'NAME_SEARCH') | ||
}, | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters