fix: ui actions in proposals & load publish

This commit is contained in:
Alexandro Uc Santos
2025-07-25 20:57:35 -06:00
parent ea41ec3e0c
commit ba630fb1de
5 changed files with 49 additions and 12 deletions

View File

@@ -277,6 +277,9 @@
product: formLoad.terms?.length <= 0 ? null : formLoad.terms,
origin_warehouse: locationLoadSelected.value,
destination_warehouse: locationDownloadSelected.value,
carrier: loadStore?.currentLoad?.carrier || null,
vehicle: loadStore?.currentLoad?.vehicle || null,
driver: loadStore?.currentLoad?.driver || null,
};
if(resp) {
const index = loadStore.loads.findIndex((load) => load._id === resp._id);
@@ -614,9 +617,11 @@
<button
type="button"
class="btn btn-dark"
:class="[loadStore.currentLoad?.status !== 'Draft' ? 'btn-primary-sm radius-sm' : '']"
@click="handleSave"
>{{ t('buttons.save') }}</button>
<button
v-if="loadStore.currentLoad?.status === 'Draft'"
type="submit"
@click.prevent="handlePostLoad"
class="btn-primary-sm radius-sm"