fix(xo-web/remotes): fix S3 secret key edit UI (#5305)

Fixes #5233
This commit is contained in:
Nicolas Raynaud 2020-10-02 11:38:18 +02:00 committed by GitHub
parent fdeab86a87
commit fc81cf4d70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -14,6 +14,7 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [XOA/Notifications] Don't show expired notifications (PR [#5304](https://github.com/vatesfr/xen-orchestra/pull/5304))
- [Backup/S3] Fix secret key edit form [#5233](https://github.com/vatesfr/xen-orchestra/issues/5233) (PR[#5305](https://github.com/vatesfr/xen-orchestra/pull/5305))
### Packages to release

View File

@ -139,6 +139,9 @@ export default decorate([
.then(reset)
.catch(err => error('Create Remote', err.message || String(err)))
},
setSecretKey(_, { target: { value } }) {
this.state.password = value
},
},
computed: {
formId: generateId,
@ -414,11 +417,11 @@ export default decorate([
<input
className='form-control'
name='password'
onChange={effects.linkState}
placeholder='Secret access key'
onChange={effects.setSecretKey}
placeholder='Paste secret here to change it'
autoComplete='off'
required
type='text'
value={password}
/>
</div>
</fieldset>