Il campo FOTO sembra non comparire correttamente. (dal profilo)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
APP_VERSION="0.2.4"
|
||||
APP_VERSION="0.2.5"
|
||||
SERVICE_WORKER_FILE="service-worker.js"
|
||||
APP_ID="13"
|
||||
DIRECTORY_LOCAL="newfreeplanet"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
APP_VERSION="0.2.4"
|
||||
APP_VERSION="0.2.5"
|
||||
SERVICE_WORKER_FILE="service-worker.js"
|
||||
APP_ID="1"
|
||||
DIRECTORY_LOCAL="newfreeplanet"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
APP_VERSION="0.2.4"
|
||||
APP_VERSION="0.2.5"
|
||||
SERVICE_WORKER_FILE="service-worker.js"
|
||||
APP_ID="13"
|
||||
DIRECTORY_LOCAL="newfreeplanet"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
APP_VERSION="0.2.4"
|
||||
APP_VERSION="0.2.5"
|
||||
SERVICE_WORKER_FILE="service-worker.js"
|
||||
APP_ID="12"
|
||||
DIRECTORY_LOCAL="newfreeplanet"
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 48 KiB |
@@ -1,4 +1,4 @@
|
||||
import { defineComponent, ref, PropType, watch, onMounted } from 'vue'
|
||||
import { defineComponent, ref, PropType, watch, onMounted, computed } from 'vue'
|
||||
import { useI18n } from '@src/boot/i18n'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useQuasar } from 'quasar'
|
||||
@@ -65,6 +65,15 @@ export default defineComponent({
|
||||
return (myobj && typeof myobj !== 'string' && typeof myobj !== 'undefined')
|
||||
}
|
||||
|
||||
const isListImgValid = computed(() => {
|
||||
const arr = getlistimages()
|
||||
if (arr && tools.isArray(arr)) {
|
||||
return arr.length > 0
|
||||
} else {
|
||||
return !!arr
|
||||
}
|
||||
})
|
||||
|
||||
watch(() => props.imgGall, (newval, oldval) => {
|
||||
if (isValid(props.imgGall)) {
|
||||
// @ts-ignore
|
||||
@@ -379,6 +388,7 @@ export default defineComponent({
|
||||
fullscreen,
|
||||
fullscreensrc,
|
||||
onRejected,
|
||||
isListImgValid,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
|
||||
<div v-if="!edit">
|
||||
<div class="q-pa-xs q-gutter-md">
|
||||
<q-card v-if="getlistimages().length > 0" :class="getclass()" @click="apri">
|
||||
<q-card v-if="isListImgValid" :class="getclass()" @click="apri">
|
||||
<div v-for="(mygallery, index) in getlistimages()" :key="index">
|
||||
<div v-if="index === 0">
|
||||
AA
|
||||
<q-img
|
||||
:src="getsrcimg(mygallery)" :class="getclimg()"
|
||||
:alt="mygallery.alt">
|
||||
@@ -17,7 +18,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</q-card>
|
||||
<div v-if="!isInModif && getlistimages().length <= 0 && imagebak">
|
||||
<div v-else-if="!isInModif && !isListImgValid && imagebak">
|
||||
<q-card :class="getclass()" @click="ImgFullScreen(mygallery)">
|
||||
<q-img
|
||||
:src="imagebak" :class="getclimg()">
|
||||
@@ -25,6 +26,14 @@
|
||||
</q-card>
|
||||
|
||||
</div>
|
||||
<div v-else>
|
||||
<q-card :class="getclass()" @click="apri">
|
||||
<q-img
|
||||
src="images/noimg.png" :class="getclimg()"
|
||||
alt="no image">
|
||||
</q-img>
|
||||
</q-card>
|
||||
</div>
|
||||
<q-btn
|
||||
v-if="isInModif"
|
||||
color="primary" @click="apri"
|
||||
@@ -33,7 +42,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div v-if="getnumimages() <= 0">
|
||||
<div v-if="!isListImgValid">
|
||||
<q-btn
|
||||
flat round color="blue" icon="fas fa-tools" size="md"
|
||||
@click="apri"></q-btn>
|
||||
@@ -227,7 +236,7 @@
|
||||
accept="image/jpeg, image/jpg, image/png, .pdf"
|
||||
:url="getUrl()"
|
||||
:headers="tools.getheaders()"
|
||||
:max-file-size="2000000"
|
||||
:max-file-size="40000000"
|
||||
multiple
|
||||
auto-upload
|
||||
hide-upload-btn
|
||||
@@ -238,7 +247,7 @@
|
||||
></q-uploader>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="!isInModif && getlistimages().length <= 0 && imagebak">
|
||||
<div v-if="!isInModif && !isListImgValid && imagebak">
|
||||
|
||||
<q-card :class="getclass()" @click="ImgFullScreen(mygallery)">
|
||||
<q-img
|
||||
|
||||
@@ -4890,6 +4890,10 @@ export const tools = {
|
||||
|
||||
},
|
||||
|
||||
isArray(val: any) {
|
||||
return Array.isArray(val)
|
||||
},
|
||||
|
||||
isUserOk(){
|
||||
const userStore = useUserStore()
|
||||
return userStore.isUserOk()
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
</CTitleBanner>
|
||||
|
||||
|
||||
<!--
|
||||
<CTitleBanner
|
||||
class="q-pa-xs" title="Competenze Personali (Offerte)" bgcolor="bg-primary" clcolor="text-white"
|
||||
myclass="myshad" :canopen="true">
|
||||
@@ -84,6 +85,7 @@
|
||||
|
||||
|
||||
</CTitleBanner>
|
||||
-->
|
||||
|
||||
<CTitleBanner
|
||||
class="q-pa-xs" title="Informazioni su di te" bgcolor="bg-primary" clcolor="text-white"
|
||||
|
||||
@@ -138,6 +138,7 @@
|
||||
</q-card>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<CTitleBanner
|
||||
class="" title="Competenze e Talenti" bgcolor="bg-positive" clcolor="text-white"
|
||||
myclass="myshad" :canopen="true">
|
||||
@@ -152,6 +153,7 @@
|
||||
|
||||
|
||||
</CTitleBanner>
|
||||
-->
|
||||
|
||||
<div v-if="myuser._id">
|
||||
<CTitleBanner
|
||||
|
||||
Reference in New Issue
Block a user