set filter modal

This commit is contained in:
Jan Prochazka
2021-03-05 20:29:10 +01:00
parent 1c7052810a
commit bc54564d64
16 changed files with 365 additions and 17 deletions

View File

@@ -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));
}