remove committed conflict markers

This commit is contained in:
Stephen Birarda 2016-01-15 15:30:34 -08:00
parent 4e94817959
commit 9aeda32f3f

View file

@ -255,8 +255,8 @@ function goHomeClicked() {
var logWindow = null; var logWindow = null;
function buildMenuArray(serverState) { function buildMenuArray(serverState) {
<<<<<<< HEAD
var menuArray = null; var menuArray = null;
if (isShuttingDown) { if (isShuttingDown) {
menuArray = [ menuArray = [
{ {
@ -266,6 +266,13 @@ function buildMenuArray(serverState) {
]; ];
} else { } else {
menuArray = [ menuArray = [
{
label: 'Server - Stopped',
enabled: false
},
{
type: 'separator'
},
{ {
label: 'Go Home', label: 'Go Home',
click: goHomeClicked, click: goHomeClicked,
@ -275,30 +282,29 @@ function buildMenuArray(serverState) {
type: 'separator' type: 'separator'
}, },
{ {
label: "Server - Stopped", label: 'Start Server',
enabled: false
},
{
label: "Start",
click: function() { homeServer.restart(); } click: function() { homeServer.restart(); }
}, },
{ {
label: "Stop", label: 'Stop Server',
visible: false, visible: false,
click: function() { homeServer.stop(); } click: function() { homeServer.stop(); }
}, },
{ {
label: "Settings", label: 'Settings',
click: function() { shell.openExternal('http://localhost:40100/settings'); }, click: function() { shell.openExternal('http://localhost:40100/settings'); },
enabled: false enabled: false
}, },
{ {
label: "View Logs", label: 'View Logs',
click: function() { logWindow.open(); } click: function() { openFileBrowser(logPath); }
}, },
{ {
label: "Open Log Directory", type: 'separator'
click: function() { openFileBrowser(logPath); } },
{
label: 'Share',
click: function() { shell.openExternal('http://localhost:40100/settings/?action=share') }
}, },
{ {
type: 'separator' type: 'separator'
@ -306,65 +312,12 @@ function buildMenuArray(serverState) {
{ {
label: 'Quit', label: 'Quit',
accelerator: 'Command+Q', accelerator: 'Command+Q',
click: function() { shutdown(); } click: function() { app.quit(); }
} }
]; ];
updateMenuArray(menuArray, serverState); 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; return menuArray;
} }