Remove auto-fill for existing relationship configuration

This commit is contained in:
rijkvanzanten
2021-04-22 17:18:04 -04:00
parent 7929ae312b
commit 7a2210d3af
3 changed files with 9 additions and 7 deletions

View File

@@ -184,7 +184,7 @@
</v-input>
<v-input disabled :value="$t('primary_key')" />
<div class="spacer" />
<v-checkbox :disabled="isExisting" block v-model="autoFill" :label="$t('auto_fill')" />
<v-checkbox v-if="!isExisting" block v-model="autoFill" :label="$t('auto_fill')" />
<v-icon class="arrow" name="arrow_forward" />
<v-icon class="arrow" name="arrow_backward" />
<v-icon class="arrow" name="arrow_backward" />
@@ -364,12 +364,12 @@ export default defineComponent({
}
&:nth-of-type(2) {
bottom: 161px;
top: 190px;
left: 67.4%;
}
&:last-of-type {
bottom: 89px;
top: 261px;
left: 67.4%;
}
}

View File

@@ -193,7 +193,7 @@
:placeholder="$t('primary_key') + '...'"
/>
<div class="spacer" />
<v-checkbox :disabled="isExisting" block v-model="autoFill" :label="$t('auto_fill')" />
<v-checkbox v-if="!isExisting" block v-model="autoFill" :label="$t('auto_fill')" />
<v-icon class="arrow" name="arrow_forward" />
<v-icon class="arrow" name="arrow_backward" />
</div>
@@ -458,12 +458,12 @@ export default defineComponent({
pointer-events: none;
&:first-of-type {
bottom: 161px;
top: 117px;
left: 32.5%;
}
&:last-of-type {
bottom: 89px;
top: 190px;
left: 67.4%;
}
}

View File

@@ -64,7 +64,7 @@ function initLocalStore(collection: string, field: string, type: typeof localTyp
updateFields: [],
newRows: {},
autoFillJunctionRelation: true,
autoFillJunctionRelation: false,
});
availableInterfaces = computed<InterfaceConfig[]>(() => {
@@ -126,6 +126,8 @@ function initLocalStore(collection: string, field: string, type: typeof localTyp
state.relations = relationsStore.getRelationsForField(collection, field);
} else {
state.autoFillJunctionRelation = true;
watch(
() => availableInterfaces.value,
() => {