Add document classification
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -14,3 +14,23 @@ export function getDocumentTypeLabel(__: Translator, type: string) {
|
||||
return __("Procedure");
|
||||
}
|
||||
}
|
||||
|
||||
export const documentClassifications = [
|
||||
"PUBLIC",
|
||||
"INTERNAL",
|
||||
"CONFIDENTIAL",
|
||||
"SECRET",
|
||||
] as const;
|
||||
|
||||
export function getDocumentClassificationLabel(__: Translator, classification: string) {
|
||||
switch (classification) {
|
||||
case "PUBLIC":
|
||||
return __("Public");
|
||||
case "INTERNAL":
|
||||
return __("Internal");
|
||||
case "CONFIDENTIAL":
|
||||
return __("Confidential");
|
||||
case "SECRET":
|
||||
return __("Secret");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,12 @@ export {
|
||||
type CountryCode,
|
||||
} from "./countries";
|
||||
export { availableFrameworks } from "./frameworks";
|
||||
export { getDocumentTypeLabel, documentTypes } from "./documents";
|
||||
export {
|
||||
getDocumentTypeLabel,
|
||||
documentTypes,
|
||||
getDocumentClassificationLabel,
|
||||
documentClassifications,
|
||||
} from "./documents";
|
||||
export { getAssetTypeVariant } from "./assets";
|
||||
export {
|
||||
getSnapshotTypeLabel,
|
||||
|
||||
Reference in New Issue
Block a user