[web] Ensure field is empty when API call is finished

This commit is contained in:
Alain Nussbaumer
2025-04-27 09:06:18 +02:00
parent 56c9408ef9
commit 95de42e6be
2 changed files with 4 additions and 5 deletions

View File

@@ -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
})
},

View File

@@ -64,9 +64,9 @@ export default {
.queue_add(this.url)
.then(() => {
this.$emit('close')
this.url = ''
})
.catch(() => {
.finally(() => {
this.url = ''
this.loading = false
})
},