summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/settings.vue18
1 files changed, 8 insertions, 10 deletions
diff --git a/pages/settings.vue b/pages/settings.vue
index 5a74ced..8b8bad7 100644
--- a/pages/settings.vue
+++ b/pages/settings.vue
@@ -124,16 +124,14 @@ export default {
});
},
deleteAvatar() {
- this.$store
- .dispatch("users/deleteAvatar", this.me.id)
- .then((response) => {
- if (response.status == 200) {
- this.$toast.success("Avatar has been removed");
- this.avatarChanged = true;
- } else {
- this.$toast.error("Error removing");
- }
- });
+ this.$store.dispatch("users/deleteAvatar").then((response) => {
+ if (response.status == 200) {
+ this.$toast.success("Avatar has been removed");
+ this.avatarChanged = true;
+ } else {
+ this.$toast.error("Error removing");
+ }
+ });
},
save(event) {
const f = this.form;