Mercurial > gemma
changeset 3084:5a1f243d9c7c
client: panes: made paneRotate mutation automatically rotate if no rotation value is provided
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Thu, 18 Apr 2019 14:20:36 +0200 |
parents | 18ab67c7241a |
children | 7ac392edf8e2 |
files | client/src/store/application.js |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/store/application.js Thu Apr 18 14:12:27 2019 +0200 +++ b/client/src/store/application.js Thu Apr 18 14:20:36 2019 +0200 @@ -93,7 +93,12 @@ } }, paneRotate: (state, rotate) => { - state.paneRotate = rotate; + if (rotate) { + state.paneRotate = rotate; + } else { + state.paneRotate++; + if (state.paneRotate === 5) state.paneRotate = 1; + } }, showSidebar: (state, show) => { state.showSidebar = show;