removed unused code

This commit is contained in:
joschuatonn
2024-06-20 07:30:03 +02:00
parent 6b558e6d48
commit 629a9efb4f

View File

@@ -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>
@@ -93,8 +98,8 @@
import { useQuasar } from 'quasar';
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 { sendNotification } from 'src/utils';
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() {