mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 21:03:00 -05:00
[web] Ensure field is empty when API call is finished
This commit is contained in:
@@ -60,10 +60,9 @@ export default {
|
||||
.then(() => {
|
||||
this.$emit('podcast-added')
|
||||
this.$emit('close')
|
||||
this.url = ''
|
||||
this.loading = false
|
||||
})
|
||||
.catch(() => {
|
||||
.finally(() => {
|
||||
this.url = ''
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
||||
@@ -64,9 +64,9 @@ export default {
|
||||
.queue_add(this.url)
|
||||
.then(() => {
|
||||
this.$emit('close')
|
||||
this.url = ''
|
||||
})
|
||||
.catch(() => {
|
||||
.finally(() => {
|
||||
this.url = ''
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user