diff --git a/admin/resources/base-increase/base-increase.resource.ts b/admin/resources/base-increase/base-increase.resource.ts index da98a2a7..7f47d483 100644 --- a/admin/resources/base-increase/base-increase.resource.ts +++ b/admin/resources/base-increase/base-increase.resource.ts @@ -1,5 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { BaseIncrease } from "@shared/entities/base-increase.entity.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const BaseIncreaseResource: ResourceWithOptions = { resource: BaseIncrease, @@ -12,5 +13,8 @@ export const BaseIncreaseResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/base-size/base-size.resource.ts b/admin/resources/base-size/base-size.resource.ts index bc231f19..ec219630 100644 --- a/admin/resources/base-size/base-size.resource.ts +++ b/admin/resources/base-size/base-size.resource.ts @@ -1,5 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { BaseSize } from "@shared/entities/base-size.entity.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const BaseSizeResource: ResourceWithOptions = { resource: BaseSize, @@ -12,5 +13,8 @@ export const BaseSizeResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/baseline-reassesment/baseline-reassesment.resource.ts b/admin/resources/baseline-reassesment/baseline-reassesment.resource.ts index 6d59252b..4debab13 100644 --- a/admin/resources/baseline-reassesment/baseline-reassesment.resource.ts +++ b/admin/resources/baseline-reassesment/baseline-reassesment.resource.ts @@ -1,5 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { BaselineReassessment } from "@shared/entities/cost-inputs/baseline-reassessment.entity.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const BaselineReassessmentResource: ResourceWithOptions = { resource: BaselineReassessment, @@ -12,5 +13,8 @@ export const BaselineReassessmentResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/blue-carbon-project-planning/blue-carbon-project-planning.resource.ts b/admin/resources/blue-carbon-project-planning/blue-carbon-project-planning.resource.ts index 300e1b35..c35a9b8c 100644 --- a/admin/resources/blue-carbon-project-planning/blue-carbon-project-planning.resource.ts +++ b/admin/resources/blue-carbon-project-planning/blue-carbon-project-planning.resource.ts @@ -1,5 +1,6 @@ import { BlueCarbonProjectPlanning } from "@shared/entities/cost-inputs/blue-carbon-project-planning.entity.js"; import { ResourceWithOptions } from "adminjs"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const BlueCarbonProjectPlanningResource: ResourceWithOptions = { resource: BlueCarbonProjectPlanning, @@ -26,6 +27,9 @@ export const BlueCarbonProjectPlanningResource: ResourceWithOptions = { blueCarbon: { isVisible: { list: true, show: true, edit: false, filter: true }, }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, sort: { sortBy: "blueCarbon", diff --git a/admin/resources/carbon-estandard-fees/carbon-estandard-fees.resource.ts b/admin/resources/carbon-estandard-fees/carbon-estandard-fees.resource.ts index 28d5beea..cd17383c 100644 --- a/admin/resources/carbon-estandard-fees/carbon-estandard-fees.resource.ts +++ b/admin/resources/carbon-estandard-fees/carbon-estandard-fees.resource.ts @@ -1,5 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { CarbonStandardFees } from "@shared/entities/cost-inputs/carbon-standard-fees.entity.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const CarbonStandardFeesResource: ResourceWithOptions = { resource: CarbonStandardFees, @@ -12,5 +13,8 @@ export const CarbonStandardFeesResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/carbon-righs/carbon-rights.resource.ts b/admin/resources/carbon-righs/carbon-rights.resource.ts index 42716a1d..e824c570 100644 --- a/admin/resources/carbon-righs/carbon-rights.resource.ts +++ b/admin/resources/carbon-righs/carbon-rights.resource.ts @@ -1,5 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { CarbonRights } from "@shared/entities/cost-inputs/establishing-carbon-rights.entity.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const CarbonRightsResource: ResourceWithOptions = { resource: CarbonRights, @@ -12,5 +13,8 @@ export const CarbonRightsResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/common/common.resources.ts b/admin/resources/common/common.resources.ts index 61547b16..de0f90de 100644 --- a/admin/resources/common/common.resources.ts +++ b/admin/resources/common/common.resources.ts @@ -1,5 +1,11 @@ import { ResourceOptions } from "adminjs"; +export const GLOBAL_COMMON_PROPERTIES: ResourceOptions["properties"] = { + id: { + isVisible: { list: false, show: false, edit: false, filter: false }, + }, +}; + export const COMMON_RESOURCE_LIST_PROPERTIES: ResourceOptions["properties"] = { countryName: { isVisible: { list: true, show: true, edit: false, filter: true }, diff --git a/admin/resources/community-benefit/community-benefit.resource.ts b/admin/resources/community-benefit/community-benefit.resource.ts index b0e89282..01c7c5ba 100644 --- a/admin/resources/community-benefit/community-benefit.resource.ts +++ b/admin/resources/community-benefit/community-benefit.resource.ts @@ -1,5 +1,6 @@ import { CommunityBenefitSharingFund } from "@shared/entities/cost-inputs/community-benefit-sharing-fund.entity.js"; import { ResourceWithOptions } from "adminjs"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const CommunityBenefitResource: ResourceWithOptions = { resource: CommunityBenefitSharingFund, @@ -12,5 +13,8 @@ export const CommunityBenefitResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/community-cash-flow/community-cash-flow.resource.ts b/admin/resources/community-cash-flow/community-cash-flow.resource.ts index 20eb64af..da12a10a 100644 --- a/admin/resources/community-cash-flow/community-cash-flow.resource.ts +++ b/admin/resources/community-cash-flow/community-cash-flow.resource.ts @@ -1,5 +1,6 @@ import { CommunityCashFlow } from "@shared/entities/cost-inputs/community-cash-flow.entity.js"; import { ResourceWithOptions } from "adminjs"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const CommunityCashFlowResource: ResourceWithOptions = { resource: CommunityCashFlow, @@ -12,5 +13,8 @@ export const CommunityCashFlowResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/community-representation/community-representation.resource.ts b/admin/resources/community-representation/community-representation.resource.ts index 28a4fe0d..dbb58a35 100644 --- a/admin/resources/community-representation/community-representation.resource.ts +++ b/admin/resources/community-representation/community-representation.resource.ts @@ -1,5 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { CommunityRepresentation } from "@shared/entities/cost-inputs/community-representation.entity.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const CommunityRepresentationResource: ResourceWithOptions = { resource: CommunityRepresentation, @@ -12,5 +13,8 @@ export const CommunityRepresentationResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/conservation-and-planning-admin/conservation-and-planning-admin.resource.ts b/admin/resources/conservation-and-planning-admin/conservation-and-planning-admin.resource.ts index a83a4405..99e18482 100644 --- a/admin/resources/conservation-and-planning-admin/conservation-and-planning-admin.resource.ts +++ b/admin/resources/conservation-and-planning-admin/conservation-and-planning-admin.resource.ts @@ -1,9 +1,11 @@ import { ResourceWithOptions } from "adminjs"; import { ConservationPlanningAndAdmin } from "@shared/entities/cost-inputs/conservation-and-planning-admin.entity.js"; +import { GLOBAL_COMMON_PROPERTIES, COMMON_RESOURCE_LIST_PROPERTIES } from "../common/common.resources.js"; export const ConservationAndPlanningAdminResource: ResourceWithOptions = { resource: ConservationPlanningAndAdmin, options: { + properties: {...COMMON_RESOURCE_LIST_PROPERTIES, ...GLOBAL_COMMON_PROPERTIES}, sort: { sortBy: "planningCost", direction: "desc", diff --git a/admin/resources/data-collection-and-field-cost/data-collection-and-field-cost.resource.ts b/admin/resources/data-collection-and-field-cost/data-collection-and-field-cost.resource.ts index b2971cb4..8bef62af 100644 --- a/admin/resources/data-collection-and-field-cost/data-collection-and-field-cost.resource.ts +++ b/admin/resources/data-collection-and-field-cost/data-collection-and-field-cost.resource.ts @@ -1,5 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { DataCollectionAndFieldCosts } from "@shared/entities/cost-inputs/data-collection-and-field-costs.entity.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const DataCollectionAndFieldCostResource: ResourceWithOptions = { resource: DataCollectionAndFieldCosts, @@ -12,5 +13,8 @@ export const DataCollectionAndFieldCostResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/ecosystem-loss/ecosystem-loss.resource.ts b/admin/resources/ecosystem-loss/ecosystem-loss.resource.ts index 44b70cfe..a0e4f771 100644 --- a/admin/resources/ecosystem-loss/ecosystem-loss.resource.ts +++ b/admin/resources/ecosystem-loss/ecosystem-loss.resource.ts @@ -1,6 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { EcosystemLoss } from "@shared/entities/carbon-inputs/ecosystem-loss.entity.js"; - +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const EcosystemLossResource: ResourceWithOptions = { resource: EcosystemLoss, options: { @@ -12,5 +12,8 @@ export const EcosystemLossResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/emission-factors/emission-factors.resource.ts b/admin/resources/emission-factors/emission-factors.resource.ts index f21955ee..a3aef66c 100644 --- a/admin/resources/emission-factors/emission-factors.resource.ts +++ b/admin/resources/emission-factors/emission-factors.resource.ts @@ -1,6 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { EmissionFactors } from "@shared/entities/carbon-inputs/emission-factors.entity.js"; - +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const EmissionFactorsResource: ResourceWithOptions = { resource: EmissionFactors, options: { @@ -12,5 +12,8 @@ export const EmissionFactorsResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/feasability-analysis/feasability-analysis.resource.ts b/admin/resources/feasability-analysis/feasability-analysis.resource.ts index 3f526cfb..1b419ce9 100644 --- a/admin/resources/feasability-analysis/feasability-analysis.resource.ts +++ b/admin/resources/feasability-analysis/feasability-analysis.resource.ts @@ -1,5 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { FeasibilityAnalysis } from "@shared/entities/cost-inputs/feasability-analysis.entity.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const FeasibilityAnalysisResource: ResourceWithOptions = { resource: FeasibilityAnalysis, @@ -12,5 +13,8 @@ export const FeasibilityAnalysisResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/financing-cost/financing-cost.resource.ts b/admin/resources/financing-cost/financing-cost.resource.ts index f3d1328e..1d97f2e1 100644 --- a/admin/resources/financing-cost/financing-cost.resource.ts +++ b/admin/resources/financing-cost/financing-cost.resource.ts @@ -1,6 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { FinancingCost } from "@shared/entities/cost-inputs/financing-cost.entity.js"; - +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const FinancingCostResource: ResourceWithOptions = { resource: FinancingCost, options: { @@ -12,5 +12,8 @@ export const FinancingCostResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/implementation-labor-cost/implementation-labor-cost.resource.ts b/admin/resources/implementation-labor-cost/implementation-labor-cost.resource.ts index e270318d..c458bb8f 100644 --- a/admin/resources/implementation-labor-cost/implementation-labor-cost.resource.ts +++ b/admin/resources/implementation-labor-cost/implementation-labor-cost.resource.ts @@ -1,5 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { ImplementationLaborCost } from "@shared/entities/cost-inputs/implementation-labor-cost.entity.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const ImplementationLaborCostResource: ResourceWithOptions = { resource: ImplementationLaborCost, @@ -12,5 +13,8 @@ export const ImplementationLaborCostResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/long-term-project-operating/long-term-project-operating.resource.ts b/admin/resources/long-term-project-operating/long-term-project-operating.resource.ts index 9346eb79..f733d4b1 100644 --- a/admin/resources/long-term-project-operating/long-term-project-operating.resource.ts +++ b/admin/resources/long-term-project-operating/long-term-project-operating.resource.ts @@ -1,6 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { LongTermProjectOperating } from "@shared/entities/cost-inputs/long-term-project-operating.entity.js"; - +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const LongTermProjectOperatingResource: ResourceWithOptions = { resource: LongTermProjectOperating, options: { @@ -12,5 +12,8 @@ export const LongTermProjectOperatingResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/maintenance/maintenance.resource.ts b/admin/resources/maintenance/maintenance.resource.ts index 3f7922fb..0aa13da9 100644 --- a/admin/resources/maintenance/maintenance.resource.ts +++ b/admin/resources/maintenance/maintenance.resource.ts @@ -1,6 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { Maintenance } from "@shared/entities/cost-inputs/maintenance.entity.js"; - +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const MaintenanceResource: ResourceWithOptions = { resource: Maintenance, options: { @@ -12,5 +12,8 @@ export const MaintenanceResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/model-assumptions/model-assumptions.resource.ts b/admin/resources/model-assumptions/model-assumptions.resource.ts index a39d8b09..cebb3307 100644 --- a/admin/resources/model-assumptions/model-assumptions.resource.ts +++ b/admin/resources/model-assumptions/model-assumptions.resource.ts @@ -1,5 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { ModelAssumptions } from "@shared/entities/model-assumptions.entity.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const ModelAssumptionResource: ResourceWithOptions = { resource: ModelAssumptions, @@ -12,5 +13,8 @@ export const ModelAssumptionResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/monitoring-cost/monitoring-cost.resource.ts b/admin/resources/monitoring-cost/monitoring-cost.resource.ts index f79fad37..0c62dfa3 100644 --- a/admin/resources/monitoring-cost/monitoring-cost.resource.ts +++ b/admin/resources/monitoring-cost/monitoring-cost.resource.ts @@ -1,5 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { MonitoringCost } from "@shared/entities/cost-inputs/monitoring.entity.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const MonitoringCostResource: ResourceWithOptions = { resource: MonitoringCost, @@ -12,5 +13,8 @@ export const MonitoringCostResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/mrv/mrv.resource.ts b/admin/resources/mrv/mrv.resource.ts index ad05b1ed..eeb005e6 100644 --- a/admin/resources/mrv/mrv.resource.ts +++ b/admin/resources/mrv/mrv.resource.ts @@ -1,6 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { MRV } from "@shared/entities/cost-inputs/mrv.entity.js"; - +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const MRVResource: ResourceWithOptions = { resource: MRV, options: { @@ -12,5 +12,8 @@ export const MRVResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/project-size/project-size.resource.ts b/admin/resources/project-size/project-size.resource.ts index c21e6436..43c44a24 100644 --- a/admin/resources/project-size/project-size.resource.ts +++ b/admin/resources/project-size/project-size.resource.ts @@ -1,6 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { ProjectSize } from "@shared/entities/cost-inputs/project-size.entity.js"; - +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const ProjectSizeResource: ResourceWithOptions = { resource: ProjectSize, options: { @@ -12,5 +12,8 @@ export const ProjectSizeResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/projects/projects.resource.ts b/admin/resources/projects/projects.resource.ts index e825e72e..4214b774 100644 --- a/admin/resources/projects/projects.resource.ts +++ b/admin/resources/projects/projects.resource.ts @@ -8,12 +8,15 @@ import { import { dataSource } from "../../datasource.js"; import { Project } from "@shared/entities/projects.entity.js"; import { Country } from "@shared/entities/country.entity.js"; -import { COMMON_RESOURCE_LIST_PROPERTIES } from "../common/common.resources.js"; +import { COMMON_RESOURCE_LIST_PROPERTIES, GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const ProjectsResource: ResourceWithOptions = { resource: Project, options: { - properties: COMMON_RESOURCE_LIST_PROPERTIES, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + ...COMMON_RESOURCE_LIST_PROPERTIES, + }, listProperties: [ "projectName", "projectSize", diff --git a/admin/resources/restorable-land/restorable-land.resource.ts b/admin/resources/restorable-land/restorable-land.resource.ts index 70994daa..a82ec46c 100644 --- a/admin/resources/restorable-land/restorable-land.resource.ts +++ b/admin/resources/restorable-land/restorable-land.resource.ts @@ -1,6 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { RestorableLand } from "@shared/entities/carbon-inputs/restorable-land.entity.js"; - +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const RestorableLandResource: ResourceWithOptions = { resource: RestorableLand, options: { @@ -12,5 +12,8 @@ export const RestorableLandResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, }; diff --git a/admin/resources/sequestration-rate/sequestration-rate.resource.ts b/admin/resources/sequestration-rate/sequestration-rate.resource.ts index a59efa7d..c05368ba 100644 --- a/admin/resources/sequestration-rate/sequestration-rate.resource.ts +++ b/admin/resources/sequestration-rate/sequestration-rate.resource.ts @@ -1,6 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { SequestrationRate } from "@shared/entities/carbon-inputs/sequestration-rate.entity.js"; - +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const SequestrationRateResource: ResourceWithOptions = { resource: SequestrationRate, options: { @@ -12,5 +12,6 @@ export const SequestrationRateResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: GLOBAL_COMMON_PROPERTIES, }, }; diff --git a/admin/resources/users/user.resource.ts b/admin/resources/users/user.resource.ts index 45aaa742..c5491a1b 100644 --- a/admin/resources/users/user.resource.ts +++ b/admin/resources/users/user.resource.ts @@ -1,6 +1,7 @@ import { ResourceWithOptions } from "adminjs"; import { User } from "@shared/entities/users/user.entity.js"; import { createUserAction } from "./user.actions.js"; +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const UserResource: ResourceWithOptions = { resource: User, @@ -10,7 +11,7 @@ export const UserResource: ResourceWithOptions = { icon: "User", }, properties: { - id: { isVisible: false, isId: true }, + ...GLOBAL_COMMON_PROPERTIES, password: { isVisible: false }, isActive: { isVisible: false }, email: { isRequired: true }, diff --git a/admin/resources/validation-cost/validation-cost.resource.ts b/admin/resources/validation-cost/validation-cost.resource.ts index 56b7216e..d140c7e6 100644 --- a/admin/resources/validation-cost/validation-cost.resource.ts +++ b/admin/resources/validation-cost/validation-cost.resource.ts @@ -1,6 +1,6 @@ import { ResourceWithOptions } from "adminjs"; import { ValidationCost } from "@shared/entities/cost-inputs/validation.entity.js"; - +import { GLOBAL_COMMON_PROPERTIES } from "../common/common.resources.js"; export const ValidationCostResource: ResourceWithOptions = { resource: ValidationCost, options: { @@ -12,5 +12,8 @@ export const ValidationCostResource: ResourceWithOptions = { name: "Data Management", icon: "Database", }, + properties: { + ...GLOBAL_COMMON_PROPERTIES, + }, }, };