1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add 'open project' option to Projects Welcome dialog

This commit is contained in:
Nick O'Leary 2018-11-14 12:51:02 +00:00
parent be0ef6e594
commit 4f0aa1bc02
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 22 additions and 1 deletions

View File

@ -103,6 +103,18 @@ RED.projects = (function() {
return container;
},
buttons: [
{
// id: "clipboard-dialog-cancel",
text: "Open existing project", //RED._("projects.welcome.not-right-now"),
class: "secondary",
click: function() {
createProjectOptions = {
action: "open"
}
show('git-config');
}
},
{
// id: "clipboard-dialog-cancel",
text: RED._("projects.welcome.not-right-now"),
@ -187,6 +199,8 @@ RED.projects = (function() {
show('project-details');
} else if (createProjectOptions.action === "clone") {
show('clone-project');
} else if (createProjectOptions.action === "open") {
show('create',{screen:'open'})
}
}
}

View File

@ -118,6 +118,13 @@
color: $editor-button-color-primary !important;
}
}
&.secondary {
background: none;
&:not(:hover) {
border-color: rgba(0,0,0,0);
}
}
}
.button-group-vertical {