@@ -98,8 +99,8 @@ const ManageConnection = () => {
{x.description} |
{policy(x)} |
{needConsent(x) ? 'expliciet' : 'verondersteld'} |
- {isActive(connection, x) ? 'actief' : 'inactief'} |
- {
+ {!connection || connection.State == "pending" ? null : ( | {isActive(connection, x) ? 'actief' : 'inactief'} | )}
+ {!connection || connection.State == "pending" ? null : ({
isActive(connection, x) ? (
)
- } |
+ })}
)
})
}
diff --git a/his/app/src/Patients.js b/his/app/src/Patients.js
index 936633b..9ebc7ff 100644
--- a/his/app/src/Patients.js
+++ b/his/app/src/Patients.js
@@ -4,7 +4,6 @@ import { Link, useParams, useLocation } from "react-router-dom";
import "./Index.css";
import { policy, needConsent } from "./ManageConnection";
import format from "date-fns/format";
-import formatRelativeWithOptions from "date-fns/esm/fp/formatRelativeWithOptions/index";
const hasConsent = (patient, service) => {
let consent = patient.Consent.filter(x => x.ServiceID == service.ServiceID)[0]
@@ -69,7 +68,7 @@ const DropDown = ({patient, services, updateSubscription, loading, saveConsent,
className="c-button c-button--sm"
onClick={e => e.preventDefault() || e.stopPropagation() || setOpen(true)}
>
- Opties
+ Aanmelden
{x.Name} {needConsent(x) ? : null}
@@ -166,7 +165,7 @@ export const ConsentModal = ({loading, close, service, patient, saveConsent, rem
setConsent(Object.assign({}, consent, {Brochureversion: x.target.value}))} value={consent.Brochureversion} type="text"/>
-