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(() => {
|
const isValidDefault = computed(() => {
|
||||||
if (!foreignList.value.length) return true;
|
if (!foreignList.value.length) return true;
|
||||||
if (props.modelValue === null) return false;
|
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(() => {
|
const foreigns = computed(() => {
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
v-if="isTable"
|
v-if="isTable"
|
||||||
class="btn btn-dark btn-sm"
|
class="btn btn-dark btn-sm"
|
||||||
:disabled="isQuering"
|
:disabled="isQuering"
|
||||||
@click="showFakerModal"
|
@click="showFakerModal()"
|
||||||
>
|
>
|
||||||
<i class="mdi mdi-24px mdi-playlist-plus mr-1" />
|
<i class="mdi mdi-24px mdi-playlist-plus mr-1" />
|
||||||
<span>{{ $tc('message.insertRow', 2) }}</span>
|
<span>{{ $tc('message.insertRow', 2) }}</span>
|
||||||
|
@ -339,6 +339,7 @@ const pageChange = (direction: 'prev' | 'next') => {
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const showFakerModal = (row?: any) => {
|
const showFakerModal = (row?: any) => {
|
||||||
|
console.log(row);
|
||||||
if (isQuering.value) return;
|
if (isQuering.value) return;
|
||||||
isFakerModal.value = true;
|
isFakerModal.value = true;
|
||||||
rowToDuplicate.value = row;
|
rowToDuplicate.value = row;
|
||||||
|
|
Loading…
Reference in New Issue