forked from MapComplete/MapComplete
Chore: formatting
This commit is contained in:
parent
6c3c67af56
commit
286578bfc7
58 changed files with 2199 additions and 1915 deletions
|
@ -1,19 +1,21 @@
|
|||
<script lang="ts">
|
||||
import EditLayerState from "./EditLayerState";
|
||||
import { ExclamationIcon } from "@rgossiaux/svelte-heroicons/solid";
|
||||
|
||||
export let firstPaths: Set<string>;
|
||||
export let state: EditLayerState;
|
||||
let messagesCount = state.messages.map(msgs => msgs.filter(msg => {
|
||||
const pth = msg.context.path
|
||||
return firstPaths.has(pth[0]) || (pth.length > 1 && firstPaths.has(pth[1]));
|
||||
}).length);
|
||||
import EditLayerState from "./EditLayerState"
|
||||
import { ExclamationIcon } from "@rgossiaux/svelte-heroicons/solid"
|
||||
|
||||
export let firstPaths: Set<string>
|
||||
export let state: EditLayerState
|
||||
let messagesCount = state.messages.map(
|
||||
(msgs) =>
|
||||
msgs.filter((msg) => {
|
||||
const pth = msg.context.path
|
||||
return firstPaths.has(pth[0]) || (pth.length > 1 && firstPaths.has(pth[1]))
|
||||
}).length
|
||||
)
|
||||
</script>
|
||||
|
||||
{#if $messagesCount > 0}
|
||||
<span class="alert flex w-min">
|
||||
<ExclamationIcon class="w-6 h-6" />
|
||||
<ExclamationIcon class="h-6 w-6" />
|
||||
{$messagesCount}
|
||||
</span>
|
||||
{/if}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue