Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

Commit 51cfc5ad authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Added option to hide control panel completely

parent e229154e
Pipeline #6945 failed with stages
in 6 minutes and 39 seconds
......@@ -22,6 +22,7 @@ const state = {
options: {
controlPanelPosition: 'left',
controlPanelExpanded: false,
controlPanelHidden: false,
showDataBox: true
},
init () {
......
<template>
<div class="fjs-control-panel"
:style="{left: left, right: right}"
v-show="focused"
v-show="focused && !hidden"
@mouseover="show()"
@mouseout="hide()">
<span class="fjs-panel-label" v-show="!expanded">Control Panel</span>
......@@ -48,6 +48,9 @@
expanded () {
return store.getters.controlPanel.expanded
},
hidden () {
return store.getters.options.controlPanelHidden
},
lockIcon () {
return this.locked ? 'lock' : 'lock_open'
},
......
......@@ -98,7 +98,8 @@
},
options: {
controlPanelPosition: 'right',
controlPanelExpanded: true
controlPanelExpanded: true,
controlPanelHidden: false
}
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment