mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
feature(contact) add ability to hide contact button with --no-contact (#125)
This commit is contained in:
parent
7147e0a85c
commit
a5656d15b4
8 changed files with 39 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue