Fix property mapping text box
This commit is contained in:
parent
c87cb098b2
commit
e17271b8e9
2 changed files with 6 additions and 18 deletions
|
|
@ -1,22 +1,14 @@
|
|||
<script lang="ts">
|
||||
import { run } from 'svelte/legacy';
|
||||
|
||||
import { PropertyMappingModel, PropertyMappingOption, propertyMappingOptions } from './PropertyMapping';
|
||||
import { capitalizeFirstLetter } from '../utils/Utils';
|
||||
import Icon from './Icon.svelte';
|
||||
|
||||
interface Props {
|
||||
model: PropertyMappingModel;
|
||||
save: (model: PropertyMappingModel) => void;
|
||||
}
|
||||
export let model: PropertyMappingModel;
|
||||
export let save: (model: PropertyMappingModel) => void;
|
||||
|
||||
let { model, save }: Props = $props();
|
||||
let validationResult: { res: boolean; err?: Error } | undefined;
|
||||
|
||||
let validationResult: { res: boolean; err?: Error } | undefined = $state();
|
||||
|
||||
$effect(() => {
|
||||
validationResult = model.validate();
|
||||
});
|
||||
$: validationResult = model.validate();
|
||||
</script>
|
||||
|
||||
<div class="media-db-plugin-property-mappings-model-container">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue