Skip to content

Commit e87301e

Browse files
digitalfishpondmaciaszczykm
authored andcommitted
Service user help text on Deploy page fixed (#904)
1 parent 981eea2 commit e87301e

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

i18n/messages-en.xtb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@
421421
<translation id="6940138063760813849" key="MSG_NAMESPACE_CREATE_DIALOG_SUBTITLE" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="Create namespace dialog subtitle. Appears right below the title.">The new namespace will be added to the cluster.</translation>
422422
<translation id="5623245574838401357" key="MSG_NAMESPACE_CREATE_DIALOG_LEARN_MORE_ACTION" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="The text is used as a 'Learn more' link text in the namespace creation dialog">Learn more</translation>
423423
<translation id="714354688258835139" key="MSG_NAMESPACE_CREATE_DIALOG_USER_HELP" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="User help text for the input of the 'Namespace' data.">A namespace with the specified name will be added to the cluster.</translation>
424+
<translation id="4303314106798187730" key="MSG_DEPLOY_SETTINGS_PORT_MAPPINGS_USER_HELP" source="/home/denis/Projects/dashboard/.tmp/serve/app-dev.js" desc="User help for the &quot;port mappings&quot; input on the deploy from settings page.">Optionally, an internal or external Service can be defined to map an incoming Port to a target Port seen by the container.</translation>
424425
<translation id="7594899852613234459" key="MSG_NAMESPACE_NOT_SELECTED" source="/usr/local/google/home/bryk/src/github.com/dashboard/.tmp/serve/app-dev.js" desc="Text for dropdown item that indicates that no namespace was selected">all namespaces</translation>
425426
<translation id="5514950065159777148" key="MSG_NAMESPACE_LIST_LABEL" source="/usr/local/google/home/bryk/src/github.com/dashboard/.tmp/serve/app-dev.js" desc="Label atop a list of namespaces">namespaces</translation>
426427
<translation id="6614318628162175225" key="MSG_PORT_MAPPINGS_PORT_NEGATIVE_WARNING" source="/usr/local/google/home/bryk/src/github.com/dashboard/.tmp/serve/app-dev.js" desc="This warning appears when the user specifies a negative port number in the port mappings section on the deploy page.">Port must be greater than 0</translation>

i18n/messages-ja.xtb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
<translation id="8622983950087317798" key="MSG_SERVICE_DETAIL_NAMESPACE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Namespace' for the service namespace in the details part (left) of the service details view.">ネームスペース</translation>
129129
<translation id="923795681861681704" key="MSG_SERVICE_DETAIL_LABEL_SELECTOR_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Label selector' for the service's label selector in the details part (left) of the service details view.">ラベルセレクター</translation>
130130
<translation id="5668446644812094754" key="MSG_SERVICE_DETAIL_LABELS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Labels' for the service labels in the details part (left) of the service details view.">ラベル</translation>
131-
<translation id="1483678895179795219" key="MSG_SERVICE_DETAIL_TYPE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Type' for the service type in the details part (left) of the service details view.">種別</translation>
131+
<translation id="1483678895179795219" key="MSG_SERVICE_DETAIL_TYPE_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Type' for the service type in the details part (left) of the service details view.">種類</translation>
132132
<translation id="3345086067441164496" key="MSG_SERVICE_DETAIL_CONNECTION_SUBTITLE" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Subtitle 'Connection' at the top of the column about network connectivity (right) at the service detail view.">接続情報</translation>
133133
<translation id="6864041232530892176" key="MSG_SERVICE_DETAIL_CLUSTER_IP_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Cluster IP' for the service IP in the cluster, appears in the connectivity part (right) of the service details view.">クラスター IP</translation>
134134
<translation id="807395060665311082" key="MSG_SERVICE_DETAIL_INTERNAL_ENDPOINTS_LABEL" source="/home/mirchev/go_workspace/src/github.com/kubernetes/dashboard/.tmp/serve/app-dev.js" desc="Label 'Internal endpoints' for the internal endpoints of the service, appears in the connectivity part (right) of the service details view.">内部エンドポイント</translation>
@@ -417,6 +417,10 @@
417417
<translation id="4234081832725459634" key="MSG_NODE_DETAIL_EXTERNAL_ID_LABEL" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="Label 'External ID' for the node external ID displayed on its details page.">外部 ID</translation>
418418
<translation id="7078533799786587727" key="MSG_NODE_DETAIL_CAPACITY_LABEL" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="Label 'Capacity' for the node capacity displayed on its details page.">容量</translation>
419419
<translation id="2519350225093502159" key="MSG_NODE_DETAIL_CAPACITY_VALUE" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="Value for node 'Capacity' displayed on its details page."><ph name="CPU_CAPACITY" /> コア, <ph name="MEMORY_CAPACITY" />B</translation>
420+
<translation id="6940138063760813849" key="MSG_NAMESPACE_CREATE_DIALOG_SUBTITLE" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="Create namespace dialog subtitle. Appears right below the title.">The new namespace will be added to the cluster.</translation>
421+
<translation id="5623245574838401357" key="MSG_NAMESPACE_CREATE_DIALOG_LEARN_MORE_ACTION" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="The text is used as a 'Learn more' link text in the namespace creation dialog">Learn more</translation>
422+
<translation id="714354688258835139" key="MSG_NAMESPACE_CREATE_DIALOG_USER_HELP" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="User help text for the input of the 'Namespace' data.">A namespace with the specified name will be added to the cluster.</translation>
423+
<translation id="4303314106798187730" key="MSG_DEPLOY_SETTINGS_PORT_MAPPINGS_USER_HELP" source="/home/denis/Projects/dashboard/.tmp/serve/app-dev.js" desc="User help for the &quot;port mappings&quot; input on the deploy from settings page.">Optionally, an internal or external Service can be defined to map an incoming Port to a target Port seen by the container.</translation>
420424
<translation id="6940138063760813849" key="MSG_NAMESPACE_CREATE_DIALOG_SUBTITLE" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="Create namespace dialog subtitle. Appears right below the title.">新規ネームスペースをクラスターに追加します。</translation>
421425
<translation id="5623245574838401357" key="MSG_NAMESPACE_CREATE_DIALOG_LEARN_MORE_ACTION" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="The text is used as a 'Learn more' link text in the namespace creation dialog">もっと知る</translation>
422426
<translation id="714354688258835139" key="MSG_NAMESPACE_CREATE_DIALOG_USER_HELP" source="/home/maciaszczykm/workspace/dashboard/.tmp/serve/app-dev.js" desc="User help text for the input of the 'Namespace' data.">指定した名前のネームスペースをクラスターに追加します。</translation>

src/app/frontend/deploy/deployfromsettings.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ md-progress-linear {
3333
margin-bottom: $baseline-grid;
3434
margin-top: $baseline-grid;
3535
}
36+
37+
.kd-help-section {
38+
& kd-port-mappings {
39+
margin-bottom: 0;
40+
margin-top: 0;
41+
}
42+
}

src/app/frontend/deploy/deployfromsettings_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ const i18n = {
473473
/** @export {string} @desc User help for the "port mappings" input on the deploy from settings
474474
page. */
475475
MSG_DEPLOY_SETTINGS_PORT_MAPPINGS_USER_HELP: goog.getMsg(
476-
`Ports are optional. If specified, a Service will be created mapping the Port (incoming) to a target Port seen by the container.`),
476+
`Optionally, an internal or external Service can be defined to map an incoming Port to a target Port seen by the container.`),
477477

478478
/** @export {string} @desc User help, tells the user what the DNS name of his deployed service (on
479479
the deploy page) is going to be. The actual name will follow, so this text must end with a

src/app/frontend/deploy/portmappings.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
limitations under the License.
1515
-->
1616

17-
<md-input-container class="md-block">
17+
<md-input-container class="md-block kd-deploy-input-row ">
1818
<label>{{::ctrl.i18n.MSG_PORT_MAPPINGS_SERVICE_LABEL}}</label>
1919
<md-select ng-model="ctrl.serviceType" ng-change="ctrl.changeServiceType()" required>
20-
<md-option ng-repeat="serviceType in ctrl.serviceTypes" ng-value="serviceType">
20+
<md-option ng-repeat="serviceType in ctrl.serviceTypes" ng-value="serviceType" class="md-block">
2121
{{serviceType.label}}
2222
</md-option>
2323
</md-select>
2424
</md-input-container>
2525
<div ng-repeat="portMapping in ctrl.portMappings">
2626
<ng-form name="portMappingForm" layout="row">
27-
<md-input-container flex="50" class="kd-deploy-input-row">
27+
<md-input-container flex="50">
2828
<label>{{::ctrl.i18n.MSG_PORT_MAPPINGS_PORT_LABEL}}</label>
2929
<input ng-model="portMapping.port" ng-change="ctrl.checkPortMapping(portMappingForm, $index)"
3030
type="number" min="1" max="65535" name="port" ng-required="ctrl.isFirst($index)">
@@ -36,7 +36,7 @@
3636
</ng-messages>
3737
</md-input-container>
3838
<div flex="5"></div>
39-
<md-input-container flex="50" class="kd-deploy-input-row">
39+
<md-input-container flex="50">
4040
<label>{{::ctrl.i18n.MSG_PORT_MAPPINGS_TARGET_PORT_LABEL}}</label>
4141
<input ng-model="portMapping.targetPort"
4242
ng-change="ctrl.checkPortMapping(portMappingForm, $index)"
@@ -49,7 +49,7 @@
4949
</ng-messages>
5050
</md-input-container>
5151
<div flex="5"></div>
52-
<md-input-container flex="none" class="kd-deploy-input-row">
52+
<md-input-container flex="none">
5353
<label>{{::ctrl.i18n.MSG_PORT_MAPPINGS_PROTOCOL_LABEL}}</label>
5454
<md-select ng-model="portMapping.protocol" name="protocol" is-external="ctrl.isExternal"
5555
required kd-valid-protocol>

0 commit comments

Comments
 (0)