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:
parent
be0ef6e594
commit
4f0aa1bc02
@ -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'})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
@ -135,7 +142,7 @@
|
||||
&.single {
|
||||
color: $workspace-button-color !important;
|
||||
background: $workspace-button-background;
|
||||
|
||||
|
||||
&.selected:not(.disabled):not(:disabled) {
|
||||
color: $workspace-button-toggle-color !important;
|
||||
background: $workspace-button-background-active;
|
||||
|
Loading…
Reference in New Issue
Block a user