Add controls snapshots
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -15,7 +15,7 @@ export { certificationCategoryLabel, certifications } from "./certifications";
|
||||
export { availableFrameworks } from "./frameworks";
|
||||
export { getDocumentTypeLabel, documentTypes } from "./documents";
|
||||
export { getAssetTypeVariant, getCriticityVariant } from "./assets";
|
||||
export { getSnapshotTypeLabel, snapshotTypes } from "./snapshots";
|
||||
export { getSnapshotTypeLabel, getSnapshotTypeUrlPath, snapshotTypes } from "./snapshots";
|
||||
export { getAuditStateLabel, getAuditStateVariant, auditStates } from "./audits";
|
||||
export { getStatusVariant, getStatusLabel, getNonconformityRegistryStatusOptions, getComplianceRegistryStatusOptions, registryStatuses } from "./registryStatus";
|
||||
export { promisifyMutation } from "./relay";
|
||||
|
||||
@@ -24,10 +24,19 @@ export function getSnapshotTypeLabel(__: Translator, type: string | null | undef
|
||||
case "DATA":
|
||||
return __("Data");
|
||||
case "NON_CONFORMITY_REGISTRIES":
|
||||
return __("Non Conformity Registries");
|
||||
return __("Nonconformity Registries");
|
||||
case "COMPLIANCE_REGISTRIES":
|
||||
return __("Compliance Registries");
|
||||
default:
|
||||
return __("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
export function getSnapshotTypeUrlPath(type?: string): string {
|
||||
switch (type) {
|
||||
case "DATA":
|
||||
return "/data";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user