Skip to content

Commit

Permalink
feat(domains): handle new status (#13418)
Browse files Browse the repository at this point in the history
ref: MANAGER-15536

Signed-off-by: Julien Vaumoron <[email protected]>
Co-authored-by: CDS Translator Agent <[email protected]>
  • Loading branch information
jvaumoroovh and ovh-cds authored Nov 4, 2024
1 parent d9c370f commit 04f6e6e
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const DOMAIN_STATUS = {
TECHNICAL_SUSPENDED: 'technical_suspended',
REGISTRY_SUSPENDED: 'registry_suspended',
AUTORENEW_IN_PROGRESS: 'autorenew_in_progress',
AUTORENEW_REGISTRY_IN_PROGRESS: 'autorenew_registry_in_progress',
};

export const DOMAIN_DNSSEC_STATE = {
Expand Down Expand Up @@ -85,6 +86,7 @@ export const DOMAINS_BADGES_STATUS = {
[DOMAIN_STATUS.TECHNICAL_SUSPENDED]: 'oui-badge_limited-edition',
[DOMAIN_STATUS.REGISTRY_SUSPENDED]: 'oui-badge_limited-edition',
[DOMAIN_STATUS.AUTORENEW_IN_PROGRESS]: 'oui-badge_info',
[DOMAIN_STATUS.AUTORENEW_REGISTRY_IN_PROGRESS]: 'oui-badge_info',
};

export const DOMAIN_SUSPENSION_STATE_CLASS = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@
data-sortable
>
<span
class="{{:: 'oui-badge ' + $ctrl.DOMAINS_BADGES_STATUS[$value] }}"
data-translate="{{:: 'domains_status_' + $value }}"
class="{{ ::'oui-badge ' + $ctrl.DOMAINS_BADGES_STATUS[$value] }}"
data-translate="{{ ::'domains_status_' + $value }}"
>
</span>
<button
data-ng-if="[$ctrl.DOMAIN_STATUS.RESTORABLE, $ctrl.DOMAIN_STATUS.PENDING_INCOMING_TRANSFER , $ctrl.DOMAIN_STATUS.DISPUTE, $ctrl.DOMAIN_STATUS.EXPIRED].includes($value)"
data-ng-if="[$ctrl.DOMAIN_STATUS.RESTORABLE, $ctrl.DOMAIN_STATUS.PENDING_INCOMING_TRANSFER , $ctrl.DOMAIN_STATUS.DISPUTE, $ctrl.DOMAIN_STATUS.EXPIRED, $ctrl.DOMAIN_STATUS.AUTORENEW_REGISTRY_IN_PROGRESS].includes($value)"
type="button"
class="oui-popover-button"
data-oui-popover="{{::'domains_status_tooltip_' + $value | translate}}"
data-oui-popover="{{ ::'domains_status_tooltip_' + $value | translate }}"
data-oui-popover-placement="right"
></button>
</oui-datagrid-column>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,7 @@
"domains_action_per_line_autorenew_activate": "Automatische Verlängerung aktivieren",
"domains_action_per_line_autorenew_deactivate": "Automatische Verlängerung deaktivieren",
"domains_action_per_line_resiliation_cancellation": "Kündigung der Dienstes stornieren",
"domains_status_autorenew_in_progress": "Verlängerung wird vorgenommen"
"domains_status_autorenew_in_progress": "Verlängerung wird vorgenommen",
"domains_status_autorenew_registry_in_progress": "Verlängerung wird vorgenommen",
"domains_status_tooltip_autorenew_registry_in_progress": "Die Verlängerung wird bei der Registry abgeschlossen."
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,7 @@
"domains_action_per_line_autorenew_activate": "Enable automatic renewal",
"domains_action_per_line_autorenew_deactivate": "Disable automatic renewal",
"domains_action_per_line_resiliation_cancellation": "Cancel service termination",
"domains_status_autorenew_in_progress": "Renewal in progress"
"domains_status_autorenew_in_progress": "Renewal in progress",
"domains_status_autorenew_registry_in_progress": "Renewal in progress",
"domains_status_tooltip_autorenew_registry_in_progress": "The renewal process is being finalised with the registry"
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,7 @@
"domains_action_per_line_autorenew_activate": "Activar la renovación automática",
"domains_action_per_line_autorenew_deactivate": "Desactivar la renovación automática",
"domains_action_per_line_resiliation_cancellation": "Cancelar la baja del servicio",
"domains_status_autorenew_in_progress": "Renovación en curso"
"domains_status_autorenew_in_progress": "Renovación en curso",
"domains_status_autorenew_registry_in_progress": "Renovación en curso",
"domains_status_tooltip_autorenew_registry_in_progress": "La renovación se está completando en el registro"
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"domains_status_technical_suspended": "Procédure en cours",
"domains_status_registry_suspended": "Procédure en cours",
"domains_status_autorenew_in_progress": "Renouvellement en cours",
"domains_status_autorenew_registry_in_progress": "Renouvellement en cours",
"domains_status_tooltip_autorenew_registry_in_progress": "Le renouvellement est en cours de finalisation auprès du registre",
"domains_suspension_state_not_suspended": "Actif",
"domains_suspension_state_suspended": "Inactif",
"domains_renewal_mode_automatic_renew": "Renouvellement automatique",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"domains_status_technical_suspended": "Procédure en cours",
"domains_status_registry_suspended": "Procédure en cours",
"domains_status_autorenew_in_progress": "Renouvellement en cours",
"domains_status_autorenew_registry_in_progress": "Renouvellement en cours",
"domains_status_tooltip_autorenew_registry_in_progress": "Le renouvellement est en cours de finalisation auprès du registre",
"domains_suspension_state_not_suspended": "Actif",
"domains_suspension_state_suspended": "Inactif",
"domains_renewal_mode_automatic_renew": "Renouvellement automatique",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,7 @@
"domains_action_per_line_autorenew_activate": "Attiva il rinnovo automatico",
"domains_action_per_line_autorenew_deactivate": "Disattiva il rinnovo automatico",
"domains_action_per_line_resiliation_cancellation": "Annulla la disattivazione del servizio",
"domains_status_autorenew_in_progress": "Rinnovo in corso"
"domains_status_autorenew_in_progress": "Rinnovo in corso",
"domains_status_autorenew_registry_in_progress": "Rinnovo in corso",
"domains_status_tooltip_autorenew_registry_in_progress": "Il rinnovo è in corso di finalizzazione presso il Registro"
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,7 @@
"domains_action_per_line_autorenew_activate": "Włącz automatyczne odnowienie",
"domains_action_per_line_autorenew_deactivate": "Wyłącz automatyczne odnowienie",
"domains_action_per_line_resiliation_cancellation": "Anuluj rezygnację z usługi",
"domains_status_autorenew_in_progress": "Trwa odnawianie"
"domains_status_autorenew_in_progress": "Trwa odnawianie",
"domains_status_autorenew_registry_in_progress": "Trwa odnawianie",
"domains_status_tooltip_autorenew_registry_in_progress": "Rejestr finalizuje odnowienie"
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,7 @@
"domains_action_per_line_autorenew_activate": "Ativar a renovação automática",
"domains_action_per_line_autorenew_deactivate": "Desativar a renovação automática",
"domains_action_per_line_resiliation_cancellation": "Anular a rescisão do serviço",
"domains_status_autorenew_in_progress": "Renovação em curso"
"domains_status_autorenew_in_progress": "Renovação em curso",
"domains_status_autorenew_registry_in_progress": "Renovação em curso",
"domains_status_tooltip_autorenew_registry_in_progress": "A renovação está em curso de finalização junto do registry"
}

0 comments on commit 04f6e6e

Please sign in to comment.