Skip to content

Commit

Permalink
Merge pull request #10404 from ovh/UXCT-509-rephrase-empty-datagrid
Browse files Browse the repository at this point in the history
feat(dedicated.network-security): rephrase empty datagrid
  • Loading branch information
Steffy29 authored Nov 29, 2023
2 parents 8147676 + 35f762c commit cbe7a3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ export default class ScrubbingCenterController extends AbstractCursorDatagridCon
return null;
}

if (!ipaddr.isValid(value)) {
return null;
}
this.selectedIp = value;
if (value.indexOf('.') > -1 && value.indexOf('/') === -1) {
this.selectedIp = `${value}/32`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<oui-datagrid
data-ng-if="!$ctrl.isEmpty"
id="{{ $ctrl.datagridId }}"
data-empty-placeholder="{{:: 'network_security_dashboard_empty_datagrid' | translate }}"
data-rows-loader="$ctrl.getItems($config)"
data-page="{{ $ctrl.cursors.index || 1 }}"
data-page-size="{{ $ctrl.PAGE_SIZE }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@
"network_security_dashboard_unit_pb_ps": "Pbps",
"network_security_dashboard_none": "Aucun",
"network_security_dashboard_select_ip": "Saisissez une adresse IP...",
"network_security_dashboard_empty_datagrid": "Nous n'avons constaté aucune activité suspecte pendant la période sélectionnée.",
"network_security_dashboard_empty_table": "Le service sélectionné n'a pas d'adresse IP associée, veuillez en sélectionner un autre."
}

0 comments on commit cbe7a3c

Please sign in to comment.