Skip to content

Commit

Permalink
Merge pull request #525 from bcgov/bugfix/preventQrRescan
Browse files Browse the repository at this point in the history
Prevent re-scanning a QR code while it's in Pending state
  • Loading branch information
esune authored May 21, 2024
2 parents e56dd6e + 9be79d9 commit ccf9646
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions oidc-controller/api/templates/verified_credentials.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<style>
:root {
--big-font-size: 1.5rem;
--small-font-size: 1.8rem;
--font-family-sans-serif: Arial, Helvetica, sans-serif;
--bs-primary: #003366;
--bs-secondary: #335c85;
Expand Down Expand Up @@ -80,22 +79,28 @@
.qr-button,
.scanned-mask {
position: absolute;
top: 10px;
display: flex;
background-color: white;
height: 100%;
width: 19rem;
background-color: rgba(255, 255, 255, 0.8);
height: 85%;
width: 17rem;
align-items: center;
justify-content: center;
z-index: 1;
border-radius: 1.8rem;
border-style: none;
cursor: pointer;
}
.scanned-mask {
opacity: 0.8;
font-size: var(--small-font-size);
font-size: var(--big-font-size);
font-weight: bold;
}
.message {
background-color: rgba(255, 255, 255, 1);
padding: 0.5rem;
border-radius: 0.5rem;
border: black 1px solid;
opacity: 1;
}
.description {
--bs-btn-hover-color: var(--bs-primary);
color: var(--bs-primary);
Expand All @@ -105,7 +110,6 @@
transition-property: opacity;
transition-duration: 0.2s;
transition-timing-function: ease-in-out;
width: 100%;
}
#refresh-button:hover,
#refresh-button:focus,
Expand Down Expand Up @@ -409,7 +413,7 @@ <h1 class="my-2">[[ headerText ]]</h1>
"pending",
"verified",
].includes(status);
}
},
},
mounted() {
/**
Expand Down

0 comments on commit ccf9646

Please sign in to comment.