mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
fix(Profil fotoStatus): changes how fotoStatus is evaluated for different views
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user