fix: ui actions in proposals & load publish
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user