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', {