This commit is contained in:
James B. Pollack 2016-03-12 14:54:10 -08:00
parent 50e7bd7742
commit 03a109b60f

View file

@ -477,14 +477,14 @@ function performContentMigration() {
var logWindow = null;
var labels = {
serverState: {
label: 'Server - Stopped',
enabled: false
},
version: {
label: 'Version - ' + buildInfo.buildIdentifier,
label: 'Version - ' + buildInfo.buildIdentifier,
enabled: false
},
restart: {
label: 'Start Server',
@ -499,7 +499,6 @@ var labels = {
homeServer.stop();
}
},
goHome: {
label: 'Go Home',
click: goHomeClicked,
@ -512,7 +511,6 @@ var labels = {
shutdown();
}
},
settings: {
label: 'Settings',
click: function() {
@ -526,6 +524,12 @@ var labels = {
logWindow.open();
}
},
share: {
label: 'Share',
click: function() {
shell.openExternal('http://localhost:40100/settings/?action=share')
}
},
migrateContent: {
label: 'Migrate Stack Manager Content',
click: function() {
@ -552,15 +556,15 @@ function buildMenuArray(serverState) {
if (isShuttingDown) {
menuArray.push(labels.shuttingDown);
} else {
menuArray.push(labels.stopped);
// menuArray.push(version);
menuArray.push(labels.serverState);
menuArray.push(labels.version);
menuArray.push(separator);
menuArray.push(labels.goHome);
menuArray.push(separator);
menuArray.push(labels.startServer);
menuArray.push(labels.restart);
menuArray.push(labels.stopServer);
menuArray.push(labels.settings);
menuArray.push(labels.logs);
menuArray.push(labels.viewLogs);
menuArray.push(separator);
menuArray.push(labels.share);
menuArray.push(separator);
@ -574,6 +578,7 @@ function buildMenuArray(serverState) {
}
return menuArray;
}