Skip to content

Commit 8dfee17

Browse files
committed
Fix Welcome view button activation
Signed-off-by: Denis Golovin [email protected]
1 parent 2e573d2 commit 8dfee17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/componentsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class ComponentsTreeDataProvider extends BaseTreeDataProvider<Entry> {
152152
getChildren(element?: Entry): vsc.ProviderResult<Entry[]> {
153153
const result = element ? [] : getComponentsInWorkspace();
154154
return Promise.resolve(result).then(async result1 => {
155-
await vsc.commands.executeCommand('setContext', 'openshift.component.explorer.init', result1.length === 0);
155+
await vsc.commands.executeCommand('setContext', 'openshift.component.explorer.init', true);
156156
return result;
157157
})
158158
}

src/explorer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class OpenShiftExplorer implements TreeDataProvider<OpenShiftObject>, Dis
9898
const result = element ? element.getChildren() : OpenShiftExplorer.odoctl.getClusters();
9999
return Promise.resolve(result) // convert to promise, for the case of none thenable value
100100
.then(async result1 => {
101-
await commands.executeCommand('setContext', 'openshift.app.explorer.init', result1.length === 0);
101+
await commands.executeCommand('setContext', 'openshift.app.explorer.init', true);
102102
return result1;
103103
});
104104
}

0 commit comments

Comments
 (0)