2021-06-03 14:10:31 +02:00
|
|
|
<script lang="ts">
|
|
|
|
import {errorStore} from "../../Stores/ErrorStore";
|
|
|
|
|
|
|
|
function close(): boolean {
|
|
|
|
errorStore.clearMessages();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2021-06-04 16:32:07 +02:00
|
|
|
<div class="error-div nes-container is-dark is-rounded" open>
|
2021-06-03 14:10:31 +02:00
|
|
|
<p class="nes-text is-error title">Error</p>
|
|
|
|
<div class="body">
|
|
|
|
{#each $errorStore as error}
|
|
|
|
<p>{error}</p>
|
|
|
|
{/each}
|
|
|
|
</div>
|
|
|
|
<div class="button-bar">
|
|
|
|
<button class="nes-btn is-error" on:click={close}>Close</button>
|
|
|
|
</div>
|
2021-06-04 16:32:07 +02:00
|
|
|
</div>
|
2021-06-03 14:10:31 +02:00
|
|
|
|
|
|
|
<style lang="scss">
|
2021-06-04 16:32:07 +02:00
|
|
|
div.error-div {
|
2021-06-03 14:10:31 +02:00
|
|
|
pointer-events: auto;
|
2021-06-04 16:32:07 +02:00
|
|
|
margin-top: 10vh;
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
width: max-content;
|
|
|
|
max-width: 80vw;
|
2021-06-03 14:10:31 +02:00
|
|
|
|
|
|
|
.button-bar {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.body {
|
|
|
|
max-height: 50vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
font-family: "Press Start 2P";
|
|
|
|
|
|
|
|
&.title {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|