diff --git a/src/components/EditPictureForm.vue b/src/components/EditPictureForm.vue new file mode 100644 index 000000000..a1d994399 --- /dev/null +++ b/src/components/EditPictureForm.vue @@ -0,0 +1,82 @@ + + + + + +es: + Edit photo: Editar foto + Select from computer: Seleccionar desde ordenador + Import from external URL: Importar desde URL externa + diff --git a/src/pages/Item/Card/ItemDescriptor.vue b/src/pages/Item/Card/ItemDescriptor.vue index e5183779b..f30104303 100644 --- a/src/pages/Item/Card/ItemDescriptor.vue +++ b/src/pages/Item/Card/ItemDescriptor.vue @@ -9,6 +9,7 @@ import VnLv from 'src/components/ui/VnLv.vue'; import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue'; import VnConfirm from 'components/ui/VnConfirm.vue'; import RegularizeStockForm from 'components/RegularizeStockForm.vue'; +import EditPictureForm from 'components/EditPictureForm.vue'; import { useState } from 'src/composables/useState'; import useCardDescription from 'src/composables/useCardDescription'; @@ -43,6 +44,7 @@ const entityId = computed(() => { return $props.id || route.params.id; }); const regularizeStockFormDialog = ref(null); +const editPhotoFormDialog = ref(null); const item = ref(null); const available = ref(null); const visible = ref(null); @@ -122,6 +124,10 @@ const openRegularizeStockForm = () => { regularizeStockFormDialog.value.show(); }; +const openEditPhotoForm = () => { + editPhotoFormDialog.value.show(); +}; + const cloneItem = async () => { try { const { data } = await axios.post(`Items/${entityId.value}/clone`); @@ -181,30 +187,54 @@ const openCloneDialog = async () => { +