Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18 from eclipse/quick_fix
Browse files Browse the repository at this point in the history
Rename servers to endpoints
  • Loading branch information
olexii4 authored Jan 11, 2019
2 parents 3f3e3cf + bb3cbd4 commit e5876d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion plugins/containers-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "containers-plugin",
"name": "@eclipse-che/theia-containers-plugin",
"publisher": "theia",
"keywords": [
"theia-plugin"
Expand Down
12 changes: 6 additions & 6 deletions plugins/containers-plugin/src/containers-tree-data-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ export class ContainersTreeDataProvider implements theia.TreeDataProvider<ITreeN
if (!serverKeys.length) {
return;
}
const serversId = this.getRandId();
const endpointsId = this.getRandId();
this.treeNodeItems.push({
id: serversId,
id: endpointsId,
parentId: treeItem.id,
name: 'servers',
tooltip: 'servers',
name: 'endpoints',
tooltip: 'endpoints',
isExpanded: true
});
serverKeys.forEach((serverName: string) => {
Expand All @@ -101,10 +101,10 @@ export class ContainersTreeDataProvider implements theia.TreeDataProvider<ITreeN
}
const treeNodeItem: ITreeNodeItem = {
id: this.getRandId(),
parentId: serversId,
parentId: endpointsId,
name: serverName,
iconPath: 'fa-info-circle medium-blue',
tooltip: server.url ? server.url : 'server'
tooltip: server.url ? server.url : 'endpoint'
};
if (server.url && server.url.startsWith('http')) {
treeNodeItem.name = ` [${serverName}](${server.url})`;
Expand Down

0 comments on commit e5876d6

Please sign in to comment.