Skip to content

Commit b4ff606

Browse files
committed
Inline New Component command for project and application tree items
Signed-off-by: Denis Golovin dgolovin@redhat.com
1 parent 9b80267 commit b4ff606

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed
7.03 KB
Loading
15.5 KB
Loading
7.02 KB
Loading

package.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,11 @@
414414
{
415415
"command": "openshift.component.create",
416416
"title": "New Component",
417-
"category": "OpenShift"
417+
"category": "OpenShift",
418+
"icon": {
419+
"light": "images/title/light/workspace-new.png",
420+
"dark": "images/title/dark/workspace-new.png"
421+
}
418422
},
419423
{
420424
"command": "openshift.component.createFromLocal",
@@ -1222,7 +1226,7 @@
12221226
{
12231227
"command": "openshift.url.open",
12241228
"when": "view == openshiftProjectExplorer && viewItem == componentRoute",
1225-
"group": "inline"
1229+
"group": "inline@0"
12261230
},
12271231
{
12281232
"command": "clusters.openshift.useProject",
@@ -1262,6 +1266,16 @@
12621266
"command": "openshift.project.set",
12631267
"when": "view == openshiftProjectExplorer && viewItem == project",
12641268
"group": "inline"
1269+
},
1270+
{
1271+
"command": "openshift.component.create",
1272+
"when": "view == openshiftProjectExplorer && viewItem == project",
1273+
"group": "inline"
1274+
},
1275+
{
1276+
"command": "openshift.component.create",
1277+
"when": "view == openshiftProjectExplorer && viewItem == application",
1278+
"group": "inline"
12651279
}
12661280
]
12671281
},

0 commit comments

Comments
 (0)