Modulo Administración #78

Merged
jsegarra merged 19 commits from wbuezas/hedera-web-mindshore:feature/Administracion into 4922-vueMigration 2024-08-23 19:29:46 +00:00
2 changed files with 21 additions and 4 deletions
Showing only changes of commit 87c151c057 - Show all commits

View File

@ -53,6 +53,10 @@ const props = defineProps({
editImageName: { editImageName: {
type: String, type: String,
default: '' default: ''
},
alwaysShowEditButton: {
type: Boolean,
default: false
} }
}); });
@ -69,9 +73,10 @@ const url = computed(() => {
v-if="props.editable" v-if="props.editable"
icon="add_a_photo" icon="add_a_photo"
class="show-edit-button absolute-top-left" class="show-edit-button absolute-top-left"
:class="{ hide: !props.alwaysShowEditButton }"
round round
text-color="black" text-color="black"
@click.stop="showEditForm = !showEditForm" @click.stop.prevent="showEditForm = !showEditForm"
/> />
<QImg <QImg
:class="{ :class="{
@ -86,7 +91,15 @@ const url = computed(() => {
spinner-color="primary" spinner-color="primary"
:width="props.width" :width="props.width"
:height="props.height" :height="props.height"
/> >
<template #error>
<div
class="full-width full-height flex justify-center items-center"
>
<QIcon name="image" size="sm" />
</div>
</template>
</QImg>
</div> </div>
<QDialog v-if="props.zoomSize" v-model="showZoom"> <QDialog v-if="props.zoomSize" v-model="showZoom">
@ -102,7 +115,7 @@ const url = computed(() => {
<ImageEditor <ImageEditor
class="all-pointer-events" class="all-pointer-events"
:schema="props.editSchema" :schema="props.editSchema"
:imageName="props.editImageName" :image-name="props.editImageName"
@close="showEditForm = false" @close="showEditForm = false"
/> />
</QDialog> </QDialog>
@ -127,8 +140,11 @@ const url = computed(() => {
min-width: 50px; min-width: 50px;
} }
.show-edit-button { .hide {
visibility: hidden; visibility: hidden;
}
.show-edit-button {
cursor: pointer; cursor: pointer;
background-color: $gray-light; background-color: $gray-light;
z-index: 1; z-index: 1;

View File

@ -97,6 +97,7 @@ onMounted(async () => {
rounded rounded
editable editable
edit-schema="catalog" edit-schema="catalog"
always-show-edit-button
/> />
<VnInput <VnInput
v-model="data.title" v-model="data.title"