mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Restore previous state when failing to change video verification state
When video verification can not be enabled or disabled the previous state is set again in the JavaScript share object. This ensures that the UI will not reflect a misleading state. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
parent
d41e5778a0
commit
1d7cc2e356
3 changed files with 18 additions and 10 deletions
18
apps/files_sharing/js/dist/files_sharing_tab.js
vendored
18
apps/files_sharing/js/dist/files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -291,6 +291,14 @@ export default {
|
|||
}
|
||||
break
|
||||
}
|
||||
case 'sendPasswordByTalk': {
|
||||
// show error
|
||||
this.$set(this.errors, property, message)
|
||||
|
||||
// Restore previous state
|
||||
this.share.sendPasswordByTalk = !this.share.sendPasswordByTalk
|
||||
break
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue