Skip to content

Commit

Permalink
fix donations status fix load image
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Mar 27, 2024
1 parent 5a3eeae commit de83110
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/CSP/Policy.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ protected function addGeneralDirectives(): self
->addDirective(Directive::IMG, [
'*',
'data:',
'blob:',
])
->addDirective(Directive::OBJECT, Keyword::SELF);
}
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Resources/DonationResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function toArray(Request $request): array
'donor' => "{$this->first_name} {$this->last_name}",
'project' => $this->project->name,
'amount' => money_format($this->amount),
'status' => $this->status,
'status' => $this->status->label(),
'created_at' => $this->created_at->toFormattedDateTime(),
];
}
Expand Down
14 changes: 13 additions & 1 deletion lang/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,19 @@
"regional.project.page.registration_ended" : "Înscrierea a luat sfărșit",
"regional.project.page.see_rules" : "Vezi calendarul detaliat în",
"regional.project.page.see_projects" : "Vezi proiectele înscrise",
"regional.project.gala.registration_ended": "Perioada de înscriere a luat sfârșit. Gala va avea loc pe"
"regional.project.gala.registration_ended": "Perioada de înscriere a luat sfârșit. Gala va avea loc pe",
"donation_status.aborted" : "Anulată",
"donation_status.charged" : "Încasată",
"donation_status.capture" : "Încasată",
"donation_status.canceled" : "Anulată",
"donation_status.authorized" : "Autorizată",
"donation_status.possible_fraud" : "Posibil fraudulos",
"donation_status.payment_declined" : "Plata refuzată"








Expand Down
1 change: 1 addition & 0 deletions lang/ro/donation.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'payment_declined' => 'Plata refuzata',
'possible_fraud' => 'Posibil fraudulos',
'charged' => 'Incasata',
'capture' => 'Incasata',
],

'header' => 'Donatii (:number)',
Expand Down

0 comments on commit de83110

Please sign in to comment.