Skip to content

Commit

Permalink
Disable more UI options when editing a connection
Browse files Browse the repository at this point in the history
Signed-off-by: worksofliam <[email protected]>
  • Loading branch information
worksofliam committed May 13, 2024
1 parent 273cf99 commit 7cb240f
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,8 @@
"command": "code-for-ibmi.connectTo",
"title": "Connect to IBM i",
"category": "IBM i",
"icon": "$(debug-start)"
"icon": "$(debug-start)",
"enablement": "code-for-ibmi:editingConnection !== true"
},
{
"command": "code-for-ibmi.connectToPrevious",
Expand All @@ -983,7 +984,8 @@
{
"command": "code-for-ibmi.connectToAndReload",
"title": "Connect and Reload Server Settings",
"category": "IBM i"
"category": "IBM i",
"enablement": "code-for-ibmi:editingConnection !== true"
},
{
"command": "code-for-ibmi.refreshConnections",
Expand All @@ -1002,27 +1004,32 @@
{
"command": "code-for-ibmi.showAdditionalSettings",
"title": "Connection Settings",
"category": "IBM i"
"category": "IBM i",
"enablement": "code-for-ibmi:editingConnection !== true"
},
{
"command": "code-for-ibmi.showLoginSettings",
"title": "Login Settings",
"category": "IBM i"
"category": "IBM i",
"enablement": "code-for-ibmi:editingConnection !== true"
},
{
"command": "code-for-ibmi.renameConnection",
"title": "Rename...",
"category": "IBM i"
"category": "IBM i",
"enablement": "code-for-ibmi:editingConnection !== true"
},
{
"command": "code-for-ibmi.deleteConnection",
"title": "Delete...",
"category": "IBM i"
"category": "IBM i",
"enablement": "code-for-ibmi:editingConnection !== true"
},
{
"command": "code-for-ibmi.copyConnection",
"title": "Copy...",
"category": "IBM i"
"category": "IBM i",
"enablement": "code-for-ibmi:editingConnection !== true"
},
{
"command": "code-for-ibmi.disconnect",
Expand Down

0 comments on commit 7cb240f

Please sign in to comment.