mirror of
https://github.com/directus/directus.git
synced 2026-02-02 17:04:56 -05:00
Remove auto-fill for existing relationship configuration
This commit is contained in:
@@ -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%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user