Skip to content

Commit 8fd6b8b

Browse files
committed
CCM-11966: Add Approve status to the backend
1 parent 895bb77 commit 8fd6b8b

File tree

12 files changed

+465
-52
lines changed

12 files changed

+465
-52
lines changed

frontend/src/components/molecules/MessageTemplates/MessageTemplates.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
statusToColourMapping,
1818
} from 'nhs-notify-web-template-management-utils';
1919
import { TemplateDto } from 'nhs-notify-backend-client';
20-
import { useFeatureFlags } from '@providers/client-config-provider';
2120
import style from './MessageTemplates.module.scss';
2221

2322
const messageTemplatesContent = content.pages.messageTemplates;
@@ -44,7 +43,6 @@ export function MessageTemplates({
4443
}: {
4544
templateList: TemplateDto[];
4645
}) {
47-
const isRoutingEnabled = useFeatureFlags().routing === true;
4846
return (
4947
<div className='nhsuk-grid-row'>
5048
<div className='nhsuk-grid-column-full'>
@@ -88,7 +86,7 @@ export function MessageTemplates({
8886
<Table.Cell>{typeDisplayMappings(template)}</Table.Cell>
8987
<Table.Cell>
9088
<Tag color={statusToColourMapping(template)}>
91-
{statusToDisplayMapping(template, isRoutingEnabled)}
89+
{statusToDisplayMapping(template)}
9290
</Tag>
9391
</Table.Cell>
9492
<Table.Cell>

frontend/src/styles/app.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pre {
9797

9898
.inline-block {
9999
display: inline-block;
100-
}
100+
};l,
101101

102102
.nhsuk-button-background-button {
103103
background-color: nhsuk.$nhsuk-input-border-colour;

infrastructure/terraform/modules/backend-api/spec.tmpl.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,8 @@
777777
"VALIDATION_FAILED",
778778
"VIRUS_SCAN_FAILED",
779779
"WAITING_FOR_PROOF",
780-
"PROOF_AVAILABLE"
780+
"PROOF_AVAILABLE",
781+
"TEMPLATE_PROOF_APPROVED"
781782
],
782783
"type": "string"
783784
},

0 commit comments

Comments
 (0)