mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
set filter modal
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { openedModals } from '../stores';
|
||||
import uuidv1 from 'uuid/v1';
|
||||
import _ from 'lodash';
|
||||
|
||||
export function showModal(component, props = {}) {
|
||||
const modalId = uuidv1();
|
||||
@@ -9,3 +10,7 @@ export function showModal(component, props = {}) {
|
||||
export function closeModal(modalId) {
|
||||
openedModals.update(x => x.filter(y => y.modalId != modalId));
|
||||
}
|
||||
|
||||
export function closeCurrentModal() {
|
||||
openedModals.update(x => _.dropRight(x));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user