free table - save to archive

This commit is contained in:
Jan Prochazka
2021-03-14 13:18:29 +01:00
parent 7cd26c4fe4
commit 49337a4112
9 changed files with 152 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
<script>
import FontIcon from '../icons/FontIcon.svelte';
import { closeModal } from './modalTools';
import { closeModal, getActiveModalId } from './modalTools';
import clickOutside from '../utility/clickOutside';
import keycodes from '../utility/keycodes';
import { onMount } from 'svelte';
@@ -12,12 +12,14 @@
export let skipFooter = false;
function handleCloseModal() {
closeModal(modalId);
if (modalId == getActiveModalId()) {
closeModal(modalId);
}
}
function handleEscape(e) {
if (e.keyCode == keycodes.escape) {
closeModal(modalId);
handleCloseModal();
}
}