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>
This commit is contained in:
parent
5d92a6a7c9
commit
fdac2ffe24
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
|
break
|
||||||
}
|
}
|
||||||
|
case 'sendPasswordByTalk': {
|
||||||
|
// show error
|
||||||
|
this.$set(this.errors, property, message)
|
||||||
|
|
||||||
|
// Restore previous state
|
||||||
|
this.share.sendPasswordByTalk = !this.share.sendPasswordByTalk
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue