mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Updated deploy and restart buttons
Removed unnecessary buttons Closes #5
This commit is contained in:
parent
019530df66
commit
06c9edc285
@ -286,15 +286,15 @@
|
|||||||
"copyMessageValue_truncated": "Truncated value copied"
|
"copyMessageValue_truncated": "Truncated value copied"
|
||||||
},
|
},
|
||||||
"deploy": {
|
"deploy": {
|
||||||
"deploy": "Deploy",
|
"deploy": "Save Changes",
|
||||||
"full": "Full",
|
"full": "Save Changes",
|
||||||
"fullDesc": "Deploys everything in the workspace",
|
"fullDesc": "Saves all changes to all flows",
|
||||||
"modifiedFlows": "Modified Flows",
|
"modifiedFlows": "Modified Flows",
|
||||||
"modifiedFlowsDesc": "Only deploys flows that contain changed nodes",
|
"modifiedFlowsDesc": "Only deploys flows that contain changed nodes",
|
||||||
"modifiedNodes": "Modified Nodes",
|
"modifiedNodes": "Modified Nodes",
|
||||||
"modifiedNodesDesc": "Only deploys nodes that have changed",
|
"modifiedNodesDesc": "Only deploys nodes that have changed",
|
||||||
"restartFlows": "Restart Flows",
|
"restartFlows": "Delete Changes",
|
||||||
"restartFlowsDesc": "Restarts the current deployed flows",
|
"restartFlowsDesc": "Undoes all changes since last save",
|
||||||
"successfulDeploy": "Successfully deployed",
|
"successfulDeploy": "Successfully deployed",
|
||||||
"successfulRestart": "Successfully restarted flows",
|
"successfulRestart": "Successfully restarted flows",
|
||||||
"deployFailed": "Deploy failed: __message__",
|
"deployFailed": "Deploy failed: __message__",
|
||||||
|
@ -17,9 +17,7 @@
|
|||||||
RED.deploy = (function() {
|
RED.deploy = (function() {
|
||||||
|
|
||||||
var deploymentTypes = {
|
var deploymentTypes = {
|
||||||
"full":{img:"red/images/deploy-full-o.svg"},
|
"full":{img:"red/images/deploy-full-o.svg"}
|
||||||
"nodes":{img:"red/images/deploy-nodes-o.svg"},
|
|
||||||
"flows":{img:"red/images/deploy-flows-o.svg"}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var ignoreDeployWarnings = {
|
var ignoreDeployWarnings = {
|
||||||
@ -66,8 +64,6 @@ RED.deploy = (function() {
|
|||||||
RED.menu.init({id:"red-ui-header-button-deploy-options",
|
RED.menu.init({id:"red-ui-header-button-deploy-options",
|
||||||
options: [
|
options: [
|
||||||
{id:"deploymenu-item-full",toggle:"deploy-type",icon:"red/images/deploy-full.svg",label:RED._("deploy.full"),sublabel:RED._("deploy.fullDesc"),selected: true, onselect:function(s) { if(s){changeDeploymentType("full")}}},
|
{id:"deploymenu-item-full",toggle:"deploy-type",icon:"red/images/deploy-full.svg",label:RED._("deploy.full"),sublabel:RED._("deploy.fullDesc"),selected: true, onselect:function(s) { if(s){changeDeploymentType("full")}}},
|
||||||
{id:"deploymenu-item-flow",toggle:"deploy-type",icon:"red/images/deploy-flows.svg",label:RED._("deploy.modifiedFlows"),sublabel:RED._("deploy.modifiedFlowsDesc"), onselect:function(s) {if(s){changeDeploymentType("flows")}}},
|
|
||||||
{id:"deploymenu-item-node",toggle:"deploy-type",icon:"red/images/deploy-nodes.svg",label:RED._("deploy.modifiedNodes"),sublabel:RED._("deploy.modifiedNodesDesc"),onselect:function(s) { if(s){changeDeploymentType("nodes")}}},
|
|
||||||
null,
|
null,
|
||||||
{id:"deploymenu-item-reload", icon:"red/images/deploy-reload.svg",label:RED._("deploy.restartFlows"),sublabel:RED._("deploy.restartFlowsDesc"),onselect:"core:restart-flows"},
|
{id:"deploymenu-item-reload", icon:"red/images/deploy-reload.svg",label:RED._("deploy.restartFlows"),sublabel:RED._("deploy.restartFlowsDesc"),onselect:"core:restart-flows"},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user