Skip to content

Commit 6a9ae8b

Browse files
authored
Merge pull request nextcloud#53178 from nextcloud/fix/reset-property
2 parents d537769 + 1f21480 commit 6a9ae8b

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export default {
155155
methods: {
156156
async updateProperty(value) {
157157
try {
158+
this.hasError = false
158159
const responseData = await savePrimaryAccountProperty(
159160
this.name,
160161
value,
@@ -180,10 +181,8 @@ export default {
180181
this.isSuccess = true
181182
setTimeout(() => { this.isSuccess = false }, 2000)
182183
} else {
183-
this.$emit('update:value', this.initialValue)
184184
handleError(error, errorMessage)
185185
this.hasError = true
186-
setTimeout(() => { this.hasError = false }, 2000)
187186
}
188187
},
189188
},

dist/settings-vue-settings-personal-info.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/settings-vue-settings-personal-info.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)