From 842203ff3393ec451159c41ac02addac79214da8 Mon Sep 17 00:00:00 2001 From: Enrique Alcantara Date: Mon, 1 Apr 2019 18:40:31 -0400 Subject: [PATCH] Improve API URL validation message --- app/views/clusters/clusters/user/_form.html.haml | 2 +- locale/gitlab.pot | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/clusters/clusters/user/_form.html.haml b/app/views/clusters/clusters/user/_form.html.haml index bcd7f00bd7c..27b11e8469f 100644 --- a/app/views/clusters/clusters/user/_form.html.haml +++ b/app/views/clusters/clusters/user/_form.html.haml @@ -12,7 +12,7 @@ = field.fields_for :platform_kubernetes, @user_cluster.platform_kubernetes do |platform_kubernetes_field| = platform_kubernetes_field.url_field :api_url, required: true, - title: s_('ClusterIntegration|API URL must use http or https protocol.'), + title: s_('ClusterIntegration|API URL should be a valid http/https url.'), label: s_('ClusterIntegration|API URL'), label_class: 'label-bold' = platform_kubernetes_field.text_area :ca_cert, placeholder: s_('ClusterIntegration|Certificate Authority bundle (PEM format)'), diff --git a/locale/gitlab.pot b/locale/gitlab.pot index aac6a6d22be..48a77b6f257 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -1710,7 +1710,7 @@ msgstr "" msgid "ClusterIntegration|API URL" msgstr "" -msgid "ClusterIntegration|API URL must use http or https protocol." +msgid "ClusterIntegration|API URL should be a valid http/https url." msgstr "" msgid "ClusterIntegration|Add Kubernetes cluster"