Mercurial > gemma
diff client/src/store/application.js @ 2384:c06b001dc26b
client: improved popup implementation
For deleting users and templates there was a more or less quick n' dirty implementation of
a confirmation dialog/popup. Since we need this kind of dialog in several more places I
generalized the implementation a bit and made it more robust.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 25 Feb 2019 13:11:30 +0100 |
parents | ce6fd3d4a3a2 |
children | 9bf6b767a56a |
line wrap: on
line diff
--- a/client/src/store/application.js Mon Feb 25 08:47:59 2019 +0100 +++ b/client/src/store/application.js Mon Feb 25 13:11:30 2019 +0100 @@ -22,6 +22,7 @@ appTitle: process.env.VUE_APP_TITLE, secondaryLogo: process.env.VUE_APP_SECONDARY_LOGO_URL, logoForPDF: process.env.VUE_APP_LOGO_FOR_PDF_URL, + popup: null, showSidebar: false, showUsermenu: false, showSplitscreen: false, @@ -65,6 +66,9 @@ } }, mutations: { + popup: (state, popup) => { + state.popup = popup; + }, showSidebar: (state, show) => { state.showSidebar = show; },