Skip to content

Commit

Permalink
Merge pull request #598 from code4romania/feature/590-fix
Browse files Browse the repository at this point in the history
Feature/590 fix
  • Loading branch information
dragos1195 committed Jul 30, 2024
2 parents 509fc60 + a40236e commit 2825b52
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export class OrganizationRequestService {
'organization.organizationGeneral.county',
'organization.organizationGeneral.organizationCity',
'organization.organizationGeneral.organizationCounty',
'organization.organizationGeneral.associationRegistryIssuer',
'organization.organizationActivity',
'organization.organizationActivity.federations',
'organization.organizationActivity.coalitions',
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/assets/locales/ro/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@
"REQ_010": "Există deja o organizație cu acest alias",
"REQ_011": "Există deja o organizație cu acest e-mail",
"REQ_012": "Există deja o organizație cu acest număr de telefon",
"REQ_013": "Există deja o organizație cu acest Număr si data de înscriere în Registrul Special",
"REQ_014": "Există deja o organizație cu acest Numărul de înregistrare în Registrul Național",
"REQ_013": "Există deja o organizație cu acest număr si dată de înscriere în Registrul Special",
"REQ_014": "Există deja o organizație cu acest număr de înregistrare în Registrul Național",
"REQ_002": "Există deja o cerere cu acest e-mail sau cu acest număr de telefon.",
"ORG_026": "Eroare la actualizarea datelor generale"
}
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/common/constants/error.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export const ORGANIZATION_ERRORS: Record<string, string> = {
REQ_010: i18n.t('organization:create.errors.REQ_010'),
REQ_011: i18n.t('organization:create.errors.REQ_011'),
REQ_012: i18n.t('organization:create.errors.REQ_012'),
REQ_013: i18n.t('organization:create.errors.REQ_013'),
REQ_014: i18n.t('organization:create.errors.REQ_014'),
UPDATE_GENERAL: i18n.t('organization:create.errors.ORG_026'),
};

Expand Down
14 changes: 10 additions & 4 deletions frontend/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const Select = (props: {
collection: any[];
displayedAttribute: string;
id?: string;
helperText?: string;
};
selected?: any;
error?: string | any;
Expand Down Expand Up @@ -46,10 +47,10 @@ const Select = (props: {
{(props.config.displayedAttribute && props.selected
? props.selected[props.config.displayedAttribute]
: props.selected) || (
<span className="text-gray-700 font-normal sm:text-sm lg:text-base text-xs">
{props.config.label}
</span>
)}
<span className="text-gray-700 font-normal sm:text-sm lg:text-base text-xs">
{props.config.label}
</span>
)}
</span>
<span className="absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none">
<ChevronUpDownIcon className="h-5 w-5 text-gray-400" aria-hidden="true" />
Expand Down Expand Up @@ -115,6 +116,11 @@ const Select = (props: {
{props.error}
</p>
)}
{!props.error && !props.readonly && (
<p className="mt-1 sm:text-sm text-xs text-gray-500 font-normal" id="email-description">
{props.config.helperText}
</p>
)}
</div>
);
};
Expand Down

0 comments on commit 2825b52

Please sign in to comment.