Chore: remove obsolete parameter
This commit is contained in:
parent
23bc92e2ba
commit
bdea39d942
3 changed files with 1 additions and 8 deletions
|
@ -104,7 +104,6 @@
|
||||||
{state}
|
{state}
|
||||||
{layer}
|
{layer}
|
||||||
on:saved={() => (editMode = false)}
|
on:saved={() => (editMode = false)}
|
||||||
allowDeleteOfFreeform={true}
|
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
slot="cancel"
|
slot="cancel"
|
||||||
|
|
|
@ -43,8 +43,6 @@
|
||||||
export let selectedTags: UploadableTag = undefined
|
export let selectedTags: UploadableTag = undefined
|
||||||
export let extraTags: UIEventSource<Record<string, string>> = new UIEventSource({})
|
export let extraTags: UIEventSource<Record<string, string>> = new UIEventSource({})
|
||||||
|
|
||||||
export let allowDeleteOfFreeform: boolean = true
|
|
||||||
|
|
||||||
export let clss = "interactive border-interactive"
|
export let clss = "interactive border-interactive"
|
||||||
|
|
||||||
let feedback: UIEventSource<Translation> = new UIEventSource<Translation>(undefined)
|
let feedback: UIEventSource<Translation> = new UIEventSource<Translation>(undefined)
|
||||||
|
@ -197,7 +195,6 @@
|
||||||
$: {
|
$: {
|
||||||
if (
|
if (
|
||||||
config.freeform?.key &&
|
config.freeform?.key &&
|
||||||
allowDeleteOfFreeform &&
|
|
||||||
!$freeformInput &&
|
!$freeformInput &&
|
||||||
!$freeformInputUnvalidated &&
|
!$freeformInputUnvalidated &&
|
||||||
!checkedMappings?.some((m) => m) &&
|
!checkedMappings?.some((m) => m) &&
|
||||||
|
@ -504,7 +501,7 @@
|
||||||
<!-- TagRenderingQuestion-buttons -->
|
<!-- TagRenderingQuestion-buttons -->
|
||||||
<slot name="cancel" />
|
<slot name="cancel" />
|
||||||
<slot name="save-button" {selectedTags}>
|
<slot name="save-button" {selectedTags}>
|
||||||
{#if config.freeform?.key && allowDeleteOfFreeform && !checkedMappings?.some((m) => m) && !$freeformInput && !$freeformInputUnvalidated && $tags[config.freeform.key]}
|
{#if config.freeform?.key && !checkedMappings?.some((m) => m) && !$freeformInput && !$freeformInputUnvalidated && $tags[config.freeform.key]}
|
||||||
<button
|
<button
|
||||||
class="primary flex"
|
class="primary flex"
|
||||||
on:click|stopPropagation|preventDefault={() => onSave()}
|
on:click|stopPropagation|preventDefault={() => onSave()}
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
export let selectedTags: UploadableTag = undefined
|
export let selectedTags: UploadableTag = undefined
|
||||||
export let extraTags: UIEventSource<Record<string, string>> = new UIEventSource({})
|
export let extraTags: UIEventSource<Record<string, string>> = new UIEventSource({})
|
||||||
|
|
||||||
export let allowDeleteOfFreeform: boolean = true
|
|
||||||
|
|
||||||
let dynamicConfig = TagRenderingConfigUtils.withNameSuggestionIndex(config, tags, selectedElement)
|
let dynamicConfig = TagRenderingConfigUtils.withNameSuggestionIndex(config, tags, selectedElement)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -40,7 +38,6 @@
|
||||||
{selectedElement}
|
{selectedElement}
|
||||||
{layer}
|
{layer}
|
||||||
{selectedTags}
|
{selectedTags}
|
||||||
{allowDeleteOfFreeform}
|
|
||||||
{extraTags}
|
{extraTags}
|
||||||
>
|
>
|
||||||
<slot name="cancel" slot="cancel" />
|
<slot name="cancel" slot="cancel" />
|
||||||
|
|
Loading…
Reference in a new issue