mirror of https://github.com/node-red/node-red.git
Add 'open project' option to Projects Welcome dialog
parent
be0ef6e594
commit
4f0aa1bc02
|
@ -103,6 +103,18 @@ RED.projects = (function() {
|
||||||
return container;
|
return container;
|
||||||
},
|
},
|
||||||
buttons: [
|
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",
|
// id: "clipboard-dialog-cancel",
|
||||||
text: RED._("projects.welcome.not-right-now"),
|
text: RED._("projects.welcome.not-right-now"),
|
||||||
|
@ -187,6 +199,8 @@ RED.projects = (function() {
|
||||||
show('project-details');
|
show('project-details');
|
||||||
} else if (createProjectOptions.action === "clone") {
|
} else if (createProjectOptions.action === "clone") {
|
||||||
show('clone-project');
|
show('clone-project');
|
||||||
|
} else if (createProjectOptions.action === "open") {
|
||||||
|
show('create',{screen:'open'})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,6 +118,13 @@
|
||||||
color: $editor-button-color-primary !important;
|
color: $editor-button-color-primary !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&.secondary {
|
||||||
|
background: none;
|
||||||
|
&:not(:hover) {
|
||||||
|
border-color: rgba(0,0,0,0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.button-group-vertical {
|
.button-group-vertical {
|
||||||
|
|
Loading…
Reference in New Issue