@hmcts/ccd-case-ui-toolkit 7.4.27 → 7.4.28-hmcts-new-query
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23382,7 +23382,7 @@ class QueryManagementUtils {
|
|
|
23382
23382
|
messageType
|
|
23383
23383
|
};
|
|
23384
23384
|
// TODO HMCTS_QUERY_USER_TYPE: Enable when isHmctsStaff persistence is supported by the query data contract.
|
|
23385
|
-
|
|
23385
|
+
this.setHmctsStaffStatus(message, isHmctsStaff);
|
|
23386
23386
|
return message;
|
|
23387
23387
|
}
|
|
23388
23388
|
static isObject(elem) {
|
|
@@ -23398,6 +23398,12 @@ class QueryManagementUtils {
|
|
|
23398
23398
|
static normalizeHmctsStaffStatus(isHmctsStaff) {
|
|
23399
23399
|
return typeof isHmctsStaff === 'string' && isHmctsStaff.trim().toLowerCase() === 'yes' ? 'Yes' : 'No';
|
|
23400
23400
|
}
|
|
23401
|
+
// TODO HMCTS_QUERY_USER_TYPE: Enable when isHmctsStaff persistence is supported by the query data contract.
|
|
23402
|
+
static setHmctsStaffStatus(message, isHmctsStaff) {
|
|
23403
|
+
if (typeof isHmctsStaff === 'string' && isHmctsStaff) {
|
|
23404
|
+
message.isHmctsStaff = this.normalizeHmctsStaffStatus(isHmctsStaff);
|
|
23405
|
+
}
|
|
23406
|
+
}
|
|
23401
23407
|
static ɵfac = function QueryManagementUtils_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QueryManagementUtils)(); };
|
|
23402
23408
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
|
|
23403
23409
|
}
|