Merge pull request #26058 from nextcloud/backport/25911/stable21
[stable21] Only clear share password model when actually saved
This commit is contained in:
commit
04dd7b234e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -248,11 +248,14 @@ export default {
|
||||||
try {
|
try {
|
||||||
await this.updateShare(this.share.id, properties)
|
await this.updateShare(this.share.id, properties)
|
||||||
|
|
||||||
|
if (propertyNames.indexOf('password') >= 0) {
|
||||||
|
// reset password state after sync
|
||||||
|
this.$delete(this.share, 'newPassword')
|
||||||
|
}
|
||||||
|
|
||||||
// clear any previous errors
|
// clear any previous errors
|
||||||
this.$delete(this.errors, propertyNames[0])
|
this.$delete(this.errors, propertyNames[0])
|
||||||
|
|
||||||
// reset password state after sync
|
|
||||||
this.$delete(this.share, 'newPassword')
|
|
||||||
} catch ({ message }) {
|
} catch ({ message }) {
|
||||||
if (message && message !== '') {
|
if (message && message !== '') {
|
||||||
this.onSyncError(propertyNames[0], message)
|
this.onSyncError(propertyNames[0], message)
|
||||||
|
|
Loading…
Reference in New Issue