fix(Profil fotoStatus): changes how fotoStatus is evaluated for different views

This commit is contained in:
SimonGschnell
2025-07-11 11:10:35 +02:00
parent 75a93523e0
commit 28e42163a1
8 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -34,6 +34,7 @@ class ProfilLib{
$res->data = $this->studentProfil();
$res->data->pid = getAuthPersonId();
}
$res->data->fotoStatus=$this->isFotoAkzeptiert(getAuthPersonId());
}
// UID is availabe when accessing Profil/View/:uid
else {
@@ -53,7 +54,7 @@ class ProfilLib{
$res->data = $this->viewStudentProfil($uid);
}
}
$res->data->fotoStatus=$this->isFotoAkzeptiert(getAuthPersonId());
return success($res);
}
View File
View File
@@ -216,7 +216,7 @@ export default {
computed: {
fotoStatus() {
return this.data?.fotoStatus ?? false;
return this.data?.fotoStatus ?? null;
},
getTelefonValue() {
if(this.data.standort_telefon?.kontakt) {
@@ -111,7 +111,7 @@ export default {
}
},
fotoStatus() {
return this.data?.fotoStatus ?? false;
return this.data?.fotoStatus ?? null;
},
personEmails() {
@@ -93,7 +93,7 @@ export default {
<div v-if="isEditable" role="button" @click.prevent="sperre_foto_function" class="image-lock">
<i :class="{'fa':true, ...(FotoSperre?{'fa-lock':true}:{'fa-lock-open':true})} "></i>
</div>
<div v-if="!fotoStatus" role="button" @click.prevent="showModal" class="image-upload">
<div v-if="fotoStatus != null && !fotostatus" role="button" @click.prevent="showModal" class="image-upload">
<i class="fa fa-upload"></i>
</div>
</div>
@@ -165,7 +165,7 @@ export default {
computed: {
fotoStatus() {
return this.data?.fotoStatus ?? false;
return this.data?.fotoStatus ?? null;
},
filteredEditData() {
@@ -27,7 +27,7 @@ export default {
computed: {
fotoStatus() {
return this.data?.fotoStatus ?? false;
return this.data?.fotoStatus ?? null;
},
profilInformation() {
if (!this.data) {