BDC Dashboard WIP (#6812)

* Further work on dashboards

* More work on dashboard

* Undo adding manage to context menu until feature is complete

* Update cluster status name
This commit is contained in:
Charles Gagnon
2019-08-20 16:06:05 -07:00
committed by GitHub
parent 8fbbd5127c
commit b7b01fafd0
11 changed files with 2398 additions and 1522 deletions

View File

@@ -7,7 +7,7 @@
import * as azdata from 'azdata';
import * as nls from 'vscode-nls';
import { ControllerError, getEndPoints } from '../controller/clusterControllerApi';
import { getEndPoints, ControllerError } from '../controller/clusterControllerApi';
import { ControllerTreeDataProvider } from '../tree/controllerTreeDataProvider';
import { TreeNode } from '../tree/treeNode';
import { showErrorMessage } from '../utils';
@@ -38,7 +38,7 @@ export class AddControllerDialogModel {
public async onComplete(clusterName: string, url: string, username: string, password: string, rememberPassword: boolean): Promise<void> {
try {
// We pre-fetch the endpoints here to verify that the information entered is correct (the user is able to connect)
let response = await getEndPoints(clusterName, url, username, password, true);
let response = await getEndPoints(url, username, password, true);
if (response && response.endPoints) {
let masterInstance: EndpointModel = undefined;
if (response.endPoints) {
@@ -56,6 +56,7 @@ export class AddControllerDialogModel {
throw error;
}
}
}
public async onError(error: ControllerError): Promise<void> {