mirror of
https://github.com/gotson/komga.git
synced 2025-12-20 07:23:34 +01:00
fix(webui): edit book dialog would not save or reset properly
This commit is contained in:
parent
d6611db081
commit
e4b912e607
1 changed files with 2 additions and 2 deletions
|
|
@ -548,7 +548,7 @@ export default Vue.extend({
|
|||
},
|
||||
dialogReset(books: BookDto | BookDto[]) {
|
||||
this.tab = 0;
|
||||
(this.$refs.customRoleForm as any)?.reset()
|
||||
(this.$refs.customRoleForm as any)?.reset();
|
||||
(this.$refs.linksForm as any)?.resetValidation()
|
||||
this.customRoles = []
|
||||
this.$v.$reset()
|
||||
|
|
@ -583,7 +583,7 @@ export default Vue.extend({
|
|||
}
|
||||
},
|
||||
validateForm(): any {
|
||||
if (!this.$v.$invalid && (!this.single || (this.$refs.linksForm as any).validate())) {
|
||||
if (!this.$v.$invalid && (!this.single || !this.$refs.linksForm || (this.$refs.linksForm as any).validate())) {
|
||||
const metadata = {
|
||||
authorsLock: this.form.authorsLock,
|
||||
tagsLock: this.form.tagsLock,
|
||||
|
|
|
|||
Loading…
Reference in a new issue