From c7a9da41c5445ac2ec3257324b52a6d0b7eb1e8e Mon Sep 17 00:00:00 2001 From: Jayasanka Weerasinghe Date: Mon, 4 Nov 2019 17:50:34 +0000 Subject: [PATCH] Change helper texts in APPM Publisher app upload form --- .../new-app/subForms/NewAppUploadForm.js | 74 ++++++++++++------- 1 file changed, 48 insertions(+), 26 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppUploadForm.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppUploadForm.js index 2d781cb5e3b..0e53290397d 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppUploadForm.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppUploadForm.js @@ -17,7 +17,7 @@ */ import React from "react"; -import {Button, Col, Form, Icon, Input, Row, Select, Switch, Upload, Typography, Modal, Alert} from "antd"; +import {Button, Col, Form, Icon, Input, Row, Select, Switch, Upload, Typography, Modal, Alert, Tooltip} from "antd"; import "@babel/polyfill"; const {Text} = Typography; @@ -296,50 +296,72 @@ class NewAppUploadForm extends React.Component { + help={iconHelperText} + style={{ + marginBottom: 0 + }}> {getFieldDecorator('icon', { valuePropName: 'icon', getValueFromEvent: this.normFile, required: true, message: 'Please select a icon' })( -
- false} - onPreview={this.handlePreview}> - {icons.length === 1 ? null : uploadButton} - - Recommended : 240px x 240px -
+ false} + onPreview={this.handlePreview}> + {icons.length === 1 ? null : uploadButton} + )}
+ + + + + + Recommended : 240px x 240px + + + + help={screenshotHelperText} + style={{ + marginBottom: 0 + }}> {getFieldDecorator('screenshots', { valuePropName: 'icon', getValueFromEvent: this.normFile, required: true, message: 'Please select a icon' })( -
- false} - onPreview={this.handlePreview}> - {screenshots.length >= 3 ? null : uploadButton} - - Required 3 screenshots, Recommended min. 320px max. 3840px -
+ false} + onPreview={this.handlePreview}> + {screenshots.length >= 3 ? null : uploadButton} + )}
- + + + + + + It is mandatory to upload three screenshots and the + recommended screenshot size - min. 320px max. 3840px. + + + {formConfig.specificElements.hasOwnProperty("packageName") && ( {getFieldDecorator('packageName', {