Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
2383:8d025f85a3fe | 2384:c06b001dc26b |
---|---|
20 const init = () => { | 20 const init = () => { |
21 return { | 21 return { |
22 appTitle: process.env.VUE_APP_TITLE, | 22 appTitle: process.env.VUE_APP_TITLE, |
23 secondaryLogo: process.env.VUE_APP_SECONDARY_LOGO_URL, | 23 secondaryLogo: process.env.VUE_APP_SECONDARY_LOGO_URL, |
24 logoForPDF: process.env.VUE_APP_LOGO_FOR_PDF_URL, | 24 logoForPDF: process.env.VUE_APP_LOGO_FOR_PDF_URL, |
25 popup: null, | |
25 showSidebar: false, | 26 showSidebar: false, |
26 showUsermenu: false, | 27 showUsermenu: false, |
27 showSplitscreen: false, | 28 showSplitscreen: false, |
28 showSearchbar: false, | 29 showSearchbar: false, |
29 showSearchbarLastState: false, | 30 showSearchbarLastState: false, |
63 | 64 |
64 return versionStr; | 65 return versionStr; |
65 } | 66 } |
66 }, | 67 }, |
67 mutations: { | 68 mutations: { |
69 popup: (state, popup) => { | |
70 state.popup = popup; | |
71 }, | |
68 showSidebar: (state, show) => { | 72 showSidebar: (state, show) => { |
69 state.showSidebar = show; | 73 state.showSidebar = show; |
70 }, | 74 }, |
71 showSplitscreen: (state, show) => { | 75 showSplitscreen: (state, show) => { |
72 state.showSplitscreen = show; | 76 state.showSplitscreen = show; |