mirror of https://github.com/Fabio286/antares.git
fix: missing defaults on insert row window
This commit is contained in:
parent
d3da15aa13
commit
1ead76c028
|
@ -45,7 +45,7 @@ const currentValue = ref(null);
|
|||
const isValidDefault = computed(() => {
|
||||
if (!foreignList.value.length) return true;
|
||||
if (props.modelValue === null) return false;
|
||||
return foreignList.value.some(foreign => foreign.foreign_column.toString() === props.modelValue.toString());
|
||||
return foreignList.value.some(foreign => foreign.foreign_column.toString() === props.modelValue?.toString());
|
||||
});
|
||||
|
||||
const foreigns = computed(() => {
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
v-if="isTable"
|
||||
class="btn btn-dark btn-sm"
|
||||
:disabled="isQuering"
|
||||
@click="showFakerModal"
|
||||
@click="showFakerModal()"
|
||||
>
|
||||
<i class="mdi mdi-24px mdi-playlist-plus mr-1" />
|
||||
<span>{{ $tc('message.insertRow', 2) }}</span>
|
||||
|
@ -339,6 +339,7 @@ const pageChange = (direction: 'prev' | 'next') => {
|
|||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const showFakerModal = (row?: any) => {
|
||||
console.log(row);
|
||||
if (isQuering.value) return;
|
||||
isFakerModal.value = true;
|
||||
rowToDuplicate.value = row;
|
||||
|
|
Loading…
Reference in New Issue