mirror of
https://github.com/nextcloud/server.git
synced 2026-03-19 09:05:01 -04:00
Merge pull request #53178 from nextcloud/fix/reset-property
This commit is contained in:
commit
6a9ae8beea
3 changed files with 4 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
|||
4
dist/settings-vue-settings-personal-info.js
vendored
4
dist/settings-vue-settings-personal-info.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue