Skip to content

Commit 6b71edb

Browse files
Legger til visning av ferdigstilt-hendelse for varsling
1 parent abdb829 commit 6b71edb

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
deploy-til-dev:
4646
name: Deploy til dev-gcp
4747
needs: bygg-og-push-docker-image
48-
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/amp'
48+
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/legger-til-ferdigstilt-hendelse-varsling'
4949
runs-on: ubuntu-latest
5050
steps:
5151
- uses: actions/checkout@v3

src/api/kandidatvarsel-api/kandidatvarsel.ts

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export enum EksternStatus {
5050
/** Vi har fått bekreftet at en e-post er sendt. */
5151
VELLYKKET_EPOST = 'VELLYKKET_EPOST',
5252

53+
/** Varsling er ferdigstilt*/
54+
FERDIGSTILT = 'FERDIGSTILT',
55+
5356
/** Det skjedde en feil, og vi vil ikke prøve å sende varselet igjen. */
5457
FEIL = 'FEIL',
5558
}
@@ -58,6 +61,7 @@ const EksternStatusSchema = z
5861
.literal(EksternStatus.UNDER_UTSENDING)
5962
.or(z.literal(EksternStatus.VELLYKKET_SMS))
6063
.or(z.literal(EksternStatus.VELLYKKET_EPOST))
64+
.or(z.literal(EksternStatus.FERDIGSTILT))
6165
.or(z.literal(EksternStatus.FEIL));
6266

6367
const SmsSchema = z

src/kandidat/kandidatliste/kandidatrad/smsstatus/SmsStatusPopup.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ const Popuptekst: FunctionComponent<{ sms: Sms }> = ({ sms }) => {
6666
<br /> Ekstern varsel: epost sendt
6767
</>
6868
);
69+
case 'FERDIGSTILT':
70+
return (
71+
<>
72+
<br /> Ekstern varsel: varsling er ferdigstilt{' '}
73+
</>
74+
);
6975
case 'FEIL':
7076
return (
7177
<>

0 commit comments

Comments
 (0)