Skip to content

Commit

Permalink
Add approvals to review state
Browse files Browse the repository at this point in the history
  • Loading branch information
mjturt committed Aug 16, 2023
1 parent 16204b4 commit a3846c1
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.18 on 2023-08-16 16:21

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('applications', '0037_reviewstate'),
]

operations = [
migrations.AddField(
model_name='reviewstate',
name='approval',
field=models.BooleanField(default=False, verbose_name='approval'),
),
]
1 change: 1 addition & 0 deletions backend/benefit/applications/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,3 +856,4 @@ class ReviewState(models.Model):
pay_subsidy = models.BooleanField(default=False, verbose_name=_("pay subsidy"))
benefit = models.BooleanField(default=False, verbose_name=_("benefit"))
employment = models.BooleanField(default=False, verbose_name=_("employment"))
approval = models.BooleanField(default=False, verbose_name=_("approval"))
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const ConsentView: React.FC<ApplicationReviewViewProps> = ({
return (
<ReviewSection
header={t(`${translationsBase}.headings.heading9`)}
section='approval'
action={
data.status !== APPLICATION_STATUSES.RECEIVED ? (
<ConsentActions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const defaultValues = {
paySubsidy: false,
benefit: false,
employment: false,
approval: false,
},
handleUpdateReviewState: () => null,
};
Expand Down
2 changes: 2 additions & 0 deletions frontend/benefit/handler/src/types/application.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export type ReviewState = {
paySubsidy?: boolean;
benefit?: boolean;
employment?: boolean;
approval?: boolean;
};

export type ReviewStateData = {
Expand All @@ -200,4 +201,5 @@ export type ReviewStateData = {
pay_subsidy?: boolean;
benefit?: boolean;
employment?: boolean;
approval?: boolean;
};

0 comments on commit a3846c1

Please sign in to comment.