mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 13:06:01 +00:00
free table - save to archive
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { openedModals } from '../stores';
|
||||
import { get } from 'svelte/store';
|
||||
import uuidv1 from 'uuid/v1';
|
||||
import _ from 'lodash';
|
||||
|
||||
@@ -12,5 +13,10 @@ export function closeModal(modalId) {
|
||||
}
|
||||
|
||||
export function closeCurrentModal() {
|
||||
openedModals.update(x => _.dropRight(x));
|
||||
openedModals.update(modals => modals.slice(0, modals.length - 1));
|
||||
}
|
||||
|
||||
export function getActiveModalId() {
|
||||
const modals = get(openedModals);
|
||||
return modals[modals.length - 1]?.modalId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user