Merge pull request #53178 from nextcloud/fix/reset-property

This commit is contained in:
John Molakvoæ 2025-06-01 14:25:15 +02:00 committed by GitHub
commit 6a9ae8beea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 5 deletions

View file

@ -155,6 +155,7 @@ export default {
methods: {
async updateProperty(value) {
try {
this.hasError = false
const responseData = await savePrimaryAccountProperty(
this.name,
value,
@ -180,10 +181,8 @@ export default {
this.isSuccess = true
setTimeout(() => { this.isSuccess = false }, 2000)
} else {
this.$emit('update:value', this.initialValue)
handleError(error, errorMessage)
this.hasError = true
setTimeout(() => { this.hasError = false }, 2000)
}
},
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long