mirror of
https://github.com/smartyellow/status.git
synced 2025-06-28 04:35:11 +00:00
Autotest error messages
This commit is contained in:
@ -4,12 +4,14 @@ import { createEventDispatcher } from 'svelte';
|
||||
import Toggle from 'components/webdesq/toggle.svelte';
|
||||
import { operatorNames } from '../../lib/operators';
|
||||
import { realValueNames } from '../../lib/realvalues';
|
||||
import { fade } from 'svelte/transition';
|
||||
|
||||
export let value = [];
|
||||
export let specs = {};
|
||||
export let readonly = true;
|
||||
export let language = 'en';
|
||||
export let translate = s => s;
|
||||
export let error = false;
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
const defaultEndpoint = {
|
||||
@ -220,6 +222,10 @@ function removeEndpoint(i) {
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{#if error}
|
||||
<span transition:fade class="error">{error}</span>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
div:not(:last-child) {
|
||||
margin-bottom: 10px;
|
||||
|
Reference in New Issue
Block a user