From 35ba85dc97fc9d099f418a5b718e8de71fefa8b6 Mon Sep 17 00:00:00 2001 From: Adam Haglund Date: Sun, 20 Aug 2017 00:07:55 +0200 Subject: [PATCH] added modal reload function --- app/ui/components/modals/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/ui/components/modals/index.js b/app/ui/components/modals/index.js index 896ef9d70..4d1263746 100644 --- a/app/ui/components/modals/index.js +++ b/app/ui/components/modals/index.js @@ -31,6 +31,10 @@ export function hideModal (modalCls) { return _getModal(modalCls).hide(); } +export function reloadModal (modalCls) { + return _getModal(modalCls)._load(); +} + export function hideAllModals () { for (const key of Object.keys(modals)) { const modal = modals[key];