feat: relation field and picker
This commit is contained in:
1 parent
b45c99be3b
commit
37a77c9c22
92 files changed
+6826
-80
No files matched your search
@@ -7,7 +7,7 @@ import SchemaChangeList from '@/components/SchemaChangeList.vue'
|
||||
import { entriesLine } from '@/lib/schemaEntries'
|
||||
import {
|
||||
hasRefusedChange,
|
||||
isMediaOnlyClean,
|
||||
isNoDefaultOnlyClean,
|
||||
summaryLine,
|
||||
type FieldChange,
|
||||
} from '@/lib/schemaBuilderDiff'
|
||||
@@ -25,7 +25,7 @@ defineEmits<{ apply: []; close: [] }>()
|
||||
const summary = computed(() => summaryLine(props.changes))
|
||||
const entries = computed(() => entriesLine(props.name, props.total))
|
||||
const refused = computed(() => hasRefusedChange(props.changes))
|
||||
const mediaOnlyClean = computed(() => isMediaOnlyClean(props.changes))
|
||||
const noDefaultOnlyClean = computed(() => isNoDefaultOnlyClean(props.changes))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -53,7 +53,7 @@ const mediaOnlyClean = computed(() => isMediaOnlyClean(props.changes))
|
||||
<p v-if="refused" class="text-xs/4.5 text-muted">
|
||||
{{ t('Back to editing keeps your other changes.') }}
|
||||
</p>
|
||||
<p v-else-if="!mediaOnlyClean && !applying" class="text-xs/4.5 text-muted">
|
||||
<p v-else-if="!noDefaultOnlyClean && !applying" class="text-xs/4.5 text-muted">
|
||||
{{
|
||||
t(
|
||||
"Flagged changes can be refused if existing entries don't fit. If that happens, nothing is changed.",
|
||||
|
||||
Reference in new issue
Block a user