- added newer flow for appl submissions;

- re enabled appl submissions;
This commit is contained in:
Vitalii Kiiko
2024-10-29 10:17:48 +01:00
parent 69dddb4d93
commit e759bc0f7e
4 changed files with 160 additions and 30 deletions

View File

@@ -2,6 +2,9 @@ import { __ } from '@wordpress/i18n';
const getBandoLabel = (status) => {
switch (status) {
case 'ACTIVE':
return __('Attivo', 'gepafin');
case 'SUBMIT':
return __('Inviato', 'gepafin');
@@ -11,9 +14,27 @@ const getBandoLabel = (status) => {
case 'READY_TO_PUBLISH':
return __('Pronto', 'gepafin');
case 'READY':
return __('Pronto', 'gepafin');
case 'DRAFT':
return __('Bozza', 'gepafin');
case 'AWAITING':
return __('In attesa', 'gepafin');
case 'AWAIT':
return __('In attesa', 'gepafin');
case 'OPEN':
return __('Aperto', 'gepafin');
case 'ASSIGNED':
return __('Assegnato', 'gepafin');
case 'EVALUATION':
return __('Valutazione', 'gepafin');
case 'EXPIRED':
return __('Scaduto', 'gepafin');

View File

@@ -1,7 +1,8 @@
import { __ } from '@wordpress/i18n';
const getBandoSeverity = (status) => {
switch (status) {
case 'ACTIVE':
return 'success';
case 'SUBMIT':
return 'success';
@@ -11,9 +12,27 @@ const getBandoSeverity = (status) => {
case 'READY_TO_PUBLISH':
return 'info';
case 'READY':
return 'info';
case 'DRAFT':
return 'warning';
case 'AWAITING':
return 'warning';
case 'AWAIT':
return 'warning';
case 'OPEN':
return 'warning';
case 'ASSIGNED':
return 'warning';
case 'EVALUATION':
return 'info';
case 'EXPIRED':
return 'closed';