mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 02:36:00 +00:00
free table - save to archive
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user