diff --git a/src/mixins/request.mixin.js b/src/mixins/request.mixin.js index be52b88..14af756 100644 --- a/src/mixins/request.mixin.js +++ b/src/mixins/request.mixin.js @@ -95,10 +95,11 @@ export default { console.error(error); } }, - async submitFormEdit() { + async submitFormEdit(isProfileVisible) { this.showErrorMessage = false this.showSuccessMessage = false const userId = store.state.currentUserId + this.profile.visible = isProfileVisible; try { const body = JSON.stringify(this.profile) diff --git a/src/views/profile/Edit.vue b/src/views/profile/Edit.vue index 091de25..fb70cc0 100644 --- a/src/views/profile/Edit.vue +++ b/src/views/profile/Edit.vue @@ -12,25 +12,8 @@ SPDX-License-Identifier: AGPL-3.0-or-later
-
+
-
-
- - -
-
-
@@ -223,10 +206,16 @@ SPDX-License-Identifier: AGPL-3.0-or-later Gespeichert
+