From f75a2f9407cb6ef9093030950b94eff8e41e05b0 Mon Sep 17 00:00:00 2001 From: Shijun Sun <30999793+AllForNothing@users.noreply.github.com> Date: Tue, 31 Oct 2023 18:32:00 +0800 Subject: [PATCH] Add a tooltip for the replication rule (#19509) 1. Fixes #19371 Signed-off-by: AllForNothing --- .../create-edit-rule.component.html | 21 +++++++++++++++++-- .../oidc-onboard/oidc-onboard.component.html | 1 + src/portal/src/i18n/lang/de-de-lang.json | 1 + src/portal/src/i18n/lang/en-us-lang.json | 1 + src/portal/src/i18n/lang/es-es-lang.json | 1 + src/portal/src/i18n/lang/fr-fr-lang.json | 1 + src/portal/src/i18n/lang/pt-br-lang.json | 1 + src/portal/src/i18n/lang/tr-tr-lang.json | 1 + src/portal/src/i18n/lang/zh-cn-lang.json | 1 + src/portal/src/i18n/lang/zh-tw-lang.json | 1 + 10 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.html b/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.html index 9e272fdcb..c45d209c5 100644 --- a/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.html +++ b/src/portal/src/app/base/left-side-nav/replication/replication/create-edit-rule/create-edit-rule.component.html @@ -658,8 +658,25 @@ for="ruleDeletion" >{{ 'REPLICATION.DELETE_REMOTE_IMAGES' | translate - }} + }} + + + + + {{ + 'REPLICATION.PUSH_BASED_ONLY' + | translate + }} + + + + diff --git a/src/portal/src/app/oidc-onboard/oidc-onboard.component.html b/src/portal/src/app/oidc-onboard/oidc-onboard.component.html index d56ccee31..8dce110ec 100644 --- a/src/portal/src/app/oidc-onboard/oidc-onboard.component.html +++ b/src/portal/src/app/oidc-onboard/oidc-onboard.component.html @@ -55,6 +55,7 @@ name="oidcUsername" type="text" [formControl]="oidcUsername" + pattern='[^,"~#$%]+' required id="oidcUsername" size="40" /> diff --git a/src/portal/src/i18n/lang/de-de-lang.json b/src/portal/src/i18n/lang/de-de-lang.json index 80b0cadfc..a925d04ad 100644 --- a/src/portal/src/i18n/lang/de-de-lang.json +++ b/src/portal/src/i18n/lang/de-de-lang.json @@ -492,6 +492,7 @@ "RESOURCE_TYPE": "Ressourcen-Typ" }, "REPLICATION": { + "PUSH_BASED_ONLY": "Only for the push-based replication", "YES": "Ja", "SECONDS": "Sekunden", "MINUTES": "Minuten", diff --git a/src/portal/src/i18n/lang/en-us-lang.json b/src/portal/src/i18n/lang/en-us-lang.json index c606ca349..f3b0424fb 100644 --- a/src/portal/src/i18n/lang/en-us-lang.json +++ b/src/portal/src/i18n/lang/en-us-lang.json @@ -493,6 +493,7 @@ "RESOURCE_TYPE": "Resource Type" }, "REPLICATION": { + "PUSH_BASED_ONLY": "Only for the push-based replication", "YES": "Yes", "SECONDS": "Seconds", "MINUTES": "Minutes", diff --git a/src/portal/src/i18n/lang/es-es-lang.json b/src/portal/src/i18n/lang/es-es-lang.json index af7cb467e..999cab9d8 100644 --- a/src/portal/src/i18n/lang/es-es-lang.json +++ b/src/portal/src/i18n/lang/es-es-lang.json @@ -492,6 +492,7 @@ "RESOURCE_TYPE": "Resource Type" }, "REPLICATION": { + "PUSH_BASED_ONLY": "Only for the push-based replication", "YES": "Yes", "SECONDS": "Seconds", "MINUTES": "Minutes", diff --git a/src/portal/src/i18n/lang/fr-fr-lang.json b/src/portal/src/i18n/lang/fr-fr-lang.json index ac2bfb964..948ca843c 100644 --- a/src/portal/src/i18n/lang/fr-fr-lang.json +++ b/src/portal/src/i18n/lang/fr-fr-lang.json @@ -484,6 +484,7 @@ "RESOURCE_TYPE": "Type de ressource" }, "REPLICATION": { + "PUSH_BASED_ONLY": "Only for the push-based replication", "YES": "Oui", "SECONDS": "Secondes", "MINUTES": "Minutes", diff --git a/src/portal/src/i18n/lang/pt-br-lang.json b/src/portal/src/i18n/lang/pt-br-lang.json index e2b5733fb..6690f50b2 100644 --- a/src/portal/src/i18n/lang/pt-br-lang.json +++ b/src/portal/src/i18n/lang/pt-br-lang.json @@ -490,6 +490,7 @@ "RESOURCE_TYPE": "Tipo de Recurso" }, "REPLICATION": { + "PUSH_BASED_ONLY": "Only for the push-based replication", "YES": "Sim", "SECONDS": "Segundo", "MINUTES": "Minuto", diff --git a/src/portal/src/i18n/lang/tr-tr-lang.json b/src/portal/src/i18n/lang/tr-tr-lang.json index 9b0941edc..204de7e5f 100644 --- a/src/portal/src/i18n/lang/tr-tr-lang.json +++ b/src/portal/src/i18n/lang/tr-tr-lang.json @@ -492,6 +492,7 @@ "RESOURCE_TYPE": "Resource Type" }, "REPLICATION": { + "PUSH_BASED_ONLY": "Only for the push-based replication", "YES": "Evet", "SECONDS": "Saniye", "MINUTES": "Dakika", diff --git a/src/portal/src/i18n/lang/zh-cn-lang.json b/src/portal/src/i18n/lang/zh-cn-lang.json index a3e91b9e8..6485f9382 100644 --- a/src/portal/src/i18n/lang/zh-cn-lang.json +++ b/src/portal/src/i18n/lang/zh-cn-lang.json @@ -491,6 +491,7 @@ "RESOURCE_TYPE": "资源类型" }, "REPLICATION": { + "PUSH_BASED_ONLY": "仅针对于 Push-Based 模式下的复制操作", "YES": "是", "SECONDS": "秒", "MINUTES": "分钟", diff --git a/src/portal/src/i18n/lang/zh-tw-lang.json b/src/portal/src/i18n/lang/zh-tw-lang.json index ce5a08298..455f308da 100644 --- a/src/portal/src/i18n/lang/zh-tw-lang.json +++ b/src/portal/src/i18n/lang/zh-tw-lang.json @@ -491,6 +491,7 @@ "RESOURCE_TYPE": "資源類型" }, "REPLICATION": { + "PUSH_BASED_ONLY": "Only for the push-based replication", "YES": "是", "SECONDS": "秒", "MINUTES": "分鐘",