Skip to content

Commit 14e8c2b

Browse files
committed
Hide powershell tab
1 parent badfa35 commit 14e8c2b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,17 @@ <h2 ng-show="errorResponse || createError">Error:</h2>
188188
</tab>
189189

190190
<tab active="activeTab[4]">
191-
<tab-heading>PowerShell</tab-heading>
192-
<pre class="ng-binding">Please install the latest Azure PowerShell from <a href="https://github.com/Azure/azure-powershell/releases">here</a>.</pre>
193-
<div id="powershell-editor" class="explorer-editor"></div>
194-
</tab>
195-
<tab active="activeTab[5]">
196191
<tab-heading>Ansible</tab-heading>
197192
<div id="ansible-editor" class="explorer-editor"></div>
198193
</tab>
199194

200195
<!--tab active="activeTab[5]">
196+
<tab-heading>PowerShell</tab-heading>
197+
<pre class="ng-binding">Please install the latest Azure PowerShell from <a href="https://github.com/Azure/azure-powershell/releases">here</a>.</pre>
198+
<div id="powershell-editor" class="explorer-editor"></div>
199+
</tab-->
200+
201+
<!--tab active="activeTab[6]">
201202
<tab-heading>Azure CLI 2.0</tab-heading>
202203
<pre class="ng-binding">To install <strong>azure-cli</strong> follow <a href="https://github.com/Azure/azure-cli">this link</a>.</pre>
203204
<div id="azurecli-editor" class="explorer-editor">></div>

ng/AppStart/EditorCollection.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
enum Editor {
2-
ResponseEditor, RequestEditor, CreateEditor, PowershellEditor, AnsibleEditor, AzureCliEditor
2+
ResponseEditor, RequestEditor, CreateEditor, AnsibleEditor, PowershellEditor, AzureCliEditor
33
}
44

55
class EditorCollection {
@@ -9,14 +9,14 @@ class EditorCollection {
99
this.editors[Editor.ResponseEditor] = ace.edit("response-json-editor");
1010
this.editors[Editor.RequestEditor] = ace.edit("request-json-editor");
1111
this.editors[Editor.CreateEditor] = ace.edit("json-create-editor");
12-
this.editors[Editor.PowershellEditor] = ace.edit("powershell-editor");
1312
this.editors[Editor.AnsibleEditor] = ace.edit("ansible-editor");
14-
this.editors.length = 5;
13+
this.editors.length = 4;
14+
// this.editors[Editor.PowershellEditor] = ace.edit("powershell-editor");
1515
// this.editors[Editor.AzureCliEditor] = ace.edit("azurecli-editor");
1616
}
1717

1818
private isHidden(editor: Editor) {
19-
return editor === Editor.AzureCliEditor;
19+
return editor === Editor.AzureCliEditor || editor === Editor.PowershellEditor;
2020
}
2121

2222
getValue(editor: Editor, cleanObject: boolean): any {

0 commit comments

Comments
 (0)