From 9aeda32f3fb3436ebefc32e88ae927b3fe8eb857 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 15 Jan 2016 15:30:34 -0800 Subject: [PATCH] remove committed conflict markers --- console/src/main.js | 85 ++++++++++----------------------------------- 1 file changed, 19 insertions(+), 66 deletions(-) diff --git a/console/src/main.js b/console/src/main.js index d37b3f4ee7..a214a7c687 100644 --- a/console/src/main.js +++ b/console/src/main.js @@ -255,8 +255,8 @@ function goHomeClicked() { var logWindow = null; function buildMenuArray(serverState) { -<<<<<<< HEAD var menuArray = null; + if (isShuttingDown) { menuArray = [ { @@ -266,6 +266,13 @@ function buildMenuArray(serverState) { ]; } else { menuArray = [ + { + label: 'Server - Stopped', + enabled: false + }, + { + type: 'separator' + }, { label: 'Go Home', click: goHomeClicked, @@ -275,30 +282,29 @@ function buildMenuArray(serverState) { type: 'separator' }, { - label: "Server - Stopped", - enabled: false - }, - { - label: "Start", + label: 'Start Server', click: function() { homeServer.restart(); } }, { - label: "Stop", + label: 'Stop Server', visible: false, click: function() { homeServer.stop(); } }, { - label: "Settings", + label: 'Settings', click: function() { shell.openExternal('http://localhost:40100/settings'); }, enabled: false }, { - label: "View Logs", - click: function() { logWindow.open(); } + label: 'View Logs', + click: function() { openFileBrowser(logPath); } }, { - label: "Open Log Directory", - click: function() { openFileBrowser(logPath); } + type: 'separator' + }, + { + label: 'Share', + click: function() { shell.openExternal('http://localhost:40100/settings/?action=share') } }, { type: 'separator' @@ -306,65 +312,12 @@ function buildMenuArray(serverState) { { label: 'Quit', accelerator: 'Command+Q', - click: function() { shutdown(); } + click: function() { app.quit(); } } ]; updateMenuArray(menuArray, serverState); } -======= - var menuArray = [ - { - label: 'Server - Stopped', - enabled: false - }, - { - type: 'separator' - }, - { - label: 'Go Home', - click: goHomeClicked, - enabled: false - }, - { - type: 'separator' - }, - { - label: 'Start Server', - click: function() { homeServer.restart(); } - }, - { - label: 'Stop Server', - visible: false, - click: function() { homeServer.stop(); } - }, - { - label: 'Settings', - click: function() { shell.openExternal('http://localhost:40100/settings'); }, - enabled: false - }, - { - label: 'View Logs', - click: function() { openFileBrowser(logPath); } - }, - { - type: 'separator' - }, - { - label: 'Share', - click: function() { shell.openExternal('http://localhost:40100/settings/?action=share') } - }, - { - type: 'separator' - }, - { - label: 'Quit', - accelerator: 'Command+Q', - click: function() { app.quit(); } - } - ]; ->>>>>>> shuffling and renaming of menu options - return menuArray; }