removed unused code
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
<!--
|
||||
Diese Komponente erlaubt dem Nutzer die Änderung seiner Accountdaten
|
||||
-->
|
||||
<template>
|
||||
<q-dialog v-bind:model-value="showDeleteAccountPopup">
|
||||
<q-card style="padding: 20px;">
|
||||
@@ -13,8 +16,6 @@
|
||||
</q-dialog>
|
||||
<q-dialog v-bind:model-value="internalShowDialog" @update:model-value="closeDialog" backdrop-filter="brightness(60%)" full-width>
|
||||
<q-card style="margin: 3rem 20rem;padding: 30px;height: 80vh;overflow-y:scroll" v-if="userStore.userLoaded">
|
||||
<!--<h1>{{ internalShowDialog }}</h1>-->
|
||||
|
||||
<!-- HEADLINE -->
|
||||
<q-card-section class="row items-center q-pb-none">
|
||||
<h4 style="margin: 0;">Einstellungen</h4>
|
||||
@@ -40,6 +41,10 @@
|
||||
<td>Nutzername:</td>
|
||||
<td>{{ userStore.user!.username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Sichtbarkeit:</td>
|
||||
<td>{{ userStore.user!.isPrivate ? 'Privat' : 'Öffentlich' }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -94,7 +99,7 @@
|
||||
import {profilePicture, responseModel,} from 'src/models';
|
||||
import { useUserStore } from 'src/stores/user-store';
|
||||
import { sendNotification } from 'src/utils';
|
||||
import { computed, onMounted, toRefs } from 'vue';
|
||||
import { computed } from 'vue';
|
||||
import { ref } from 'vue';
|
||||
|
||||
const userStore = useUserStore();
|
||||
@@ -122,8 +127,6 @@ import { sendNotification } from 'src/utils';
|
||||
sendNotification(response.message, true);
|
||||
});
|
||||
closeDialog();
|
||||
|
||||
// Hier muss ein request ans Backend geschickt werden, welcher den gesamten User enthält
|
||||
}
|
||||
|
||||
function toggleSetPrivate() {
|
||||
|
||||
Reference in New Issue
Block a user