# HG changeset patch # User Markus Kottlaender # Date 1555590036 -7200 # Node ID 5a1f243d9c7c559ff20aabcfa2d81084fbcdedf6 # Parent 18ab67c7241a5d201004fac3bd781b2e96a505f5 client: panes: made paneRotate mutation automatically rotate if no rotation value is provided diff -r 18ab67c7241a -r 5a1f243d9c7c client/src/store/application.js --- 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;