Commit the working vertical slices for inventory image processing and the Sale workflow, including Sale history, audited voiding, multi-item persistence, admin UI, migrations, documentation, and tests.
This commit is contained in:
@@ -7,7 +7,7 @@ import { useAdminImages } from '@/composables/useAdminImages.js';
|
||||
|
||||
const route = useRoute();
|
||||
const inventoryItemId = route.params.id;
|
||||
const { images, isLoading, isSaving, error, load, reorder, setPrimary, updateAltText, retry, remove } = useAdminImages(inventoryItemId);
|
||||
const { images, isLoading, isSaving, error, load, upload, reorder, setPrimary, updateAltText, retry, remove } = useAdminImages(inventoryItemId);
|
||||
|
||||
onMounted(load);
|
||||
</script>
|
||||
@@ -23,6 +23,7 @@ onMounted(load);
|
||||
v-else
|
||||
:images="images"
|
||||
:processing-status="isSaving ? 'PROCESSING' : (images[0]?.processingStatus ?? 'COMPLETED')"
|
||||
@upload="upload"
|
||||
@reorder="reorder($event.id, $event.sortOrder)"
|
||||
@primary="setPrimary"
|
||||
@alt-text="updateAltText(images[0]?.id, $event)"
|
||||
|
||||
Reference in New Issue
Block a user