feature(contact) add ability to hide contact button with --no-contact (#125)

This commit is contained in:
Jörn Zaefferer 2017-07-28 11:36:58 +02:00 committed by coderaiser
parent 7147e0a85c
commit a5656d15b4
8 changed files with 39 additions and 2 deletions

View file

@ -56,6 +56,7 @@ function indexProcessing(options) {
const keysPanel = '<div id="js-keyspanel" class="{{ className }}"';
const keysPanelRegExp = '<div id="?js-keyspanel"? class="?{{ className }}"?';
const isOnePanel = config('onePanelMode');
const noContact = !config('contact');
const noConfig = !config('configDialog');
const noConsole = !config('console');
const noTerminal = !config('terminal');
@ -83,6 +84,10 @@ function indexProcessing(options) {
.replace('icon-move', 'icon-move none')
.replace('icon-copy', 'icon-copy none');
if (noContact)
data = data
.replace('icon-contact', 'icon-contact none');
if (noConfig)
data = data
.replace('icon-config', 'icon-config none');