@electerm/electerm-react 1.70.2 → 1.70.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,6 +76,7 @@ export default class SessionWrapper extends Component {
76
76
  this.editTab({
77
77
  sshSftpSplitView: nv
78
78
  })
79
+ window.store.triggerResize()
79
80
  }
80
81
 
81
82
  canSplitView = () => {
@@ -19,6 +19,10 @@ import ServerDataStatus from './server-data-status'
19
19
  const FormItem = Form.Item
20
20
  const e = window.translate
21
21
 
22
+ function trim (str) {
23
+ return str ? str.trim() : ''
24
+ }
25
+
22
26
  export default function SyncForm (props) {
23
27
  const [form] = Form.useForm()
24
28
  const delta = useDelta(props.formData)
@@ -149,6 +153,7 @@ export default function SyncForm (props) {
149
153
  <FormItem
150
154
  label={createLabel('API Url')}
151
155
  name='apiUrl'
156
+ normalize={trim}
152
157
  rules={[{
153
158
  max: 200, message: '200 chars max'
154
159
  }]}
@@ -178,6 +183,7 @@ export default function SyncForm (props) {
178
183
  <FormItem
179
184
  label={gistLabel}
180
185
  name='gistId'
186
+ normalize={trim}
181
187
  rules={[{
182
188
  max: 100, message: '100 chars max'
183
189
  }]}
@@ -198,6 +204,7 @@ export default function SyncForm (props) {
198
204
  label={syncPasswordLabel}
199
205
  hasFeedback
200
206
  name='syncPassword'
207
+ normalize={trim}
201
208
  rules={[{
202
209
  max: 100, message: '100 chars max'
203
210
  }]}
@@ -226,6 +233,7 @@ export default function SyncForm (props) {
226
233
  label={tokenLabel}
227
234
  hasFeedback
228
235
  name='token'
236
+ normalize={trim}
229
237
  rules={[{
230
238
  max: 1100, message: '1100 chars max'
231
239
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electerm/electerm-react",
3
- "version": "1.70.2",
3
+ "version": "1.70.6",
4
4
  "description": "react components src for electerm",
5
5
  "main": "./client/components/main/main.jsx",
6
6
  "license": "MIT",