generated from bcgov/vue-scaffold
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ccfri-3756 - add relock AFS to submit appication payload and more cod…
…e refactor
- Loading branch information
1 parent
f18aa29
commit 0dc1b99
Showing
7 changed files
with
207 additions
and
93 deletions.
There are no files selected for viewing
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
63 changes: 63 additions & 0 deletions
63
frontend/src/components/ccfriApplication/AFS/AfsDecisionCard.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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<template> | ||
<v-card elevation="2" class="pa-4"> | ||
<div class="mb-2">Please select one of the following options regarding the approvable fee schedule:</div> | ||
<v-radio-group v-model="updatedValue" :rules="rules.required" :disabled="readonly" color="primary"> | ||
<v-radio label="I accept" :value="AFS_STATUSES.ACCEPT" /> | ||
<div v-if="updatedValue === AFS_STATUSES.ACCEPT" class="text-body-2 pl-2"> | ||
After submission please wait to receive notification confirming your approval to participate in CCFRI. | ||
</div> | ||
<v-radio label="I want to upload supporting documents" :value="AFS_STATUSES.UPLOAD_DOCUMENTS" /> | ||
<v-radio label="I decline" :value="AFS_STATUSES.DECLINE" /> | ||
<div v-if="updatedValue === AFS_STATUSES.DECLINE" class="text-body-2 pl-2"> | ||
After submission please wait to receive confirmation from the ministry on the results of your CCFRI application. | ||
</div> | ||
</v-radio-group> | ||
</v-card> | ||
</template> | ||
|
||
<script> | ||
import { AFS_STATUSES } from '@/utils/constants.js'; | ||
import rules from '@/utils/rules.js'; | ||
export default { | ||
name: 'AfsDecisionCard', | ||
props: { | ||
readonly: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
modelValue: { | ||
type: Number, | ||
default: null, | ||
}, | ||
}, | ||
emits: ['update:modelValue'], | ||
data() { | ||
return { | ||
updatedValue: null, | ||
}; | ||
}, | ||
watch: { | ||
modelValue: { | ||
handler(value) { | ||
this.updatedValue = value; | ||
}, | ||
}, | ||
updatedValue: { | ||
handler(value) { | ||
this.$emit('update:modelValue', value); | ||
}, | ||
}, | ||
}, | ||
created() { | ||
this.updatedValue = this.modelValue; | ||
this.AFS_STATUSES = AFS_STATUSES; | ||
this.rules = rules; | ||
}, | ||
}; | ||
</script> | ||
<style scoped> | ||
:deep(.v-label) { | ||
opacity: 1; | ||
} | ||
</style> |
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
Oops, something went wrong.