mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Add preview title to BDC/HDFS components (#8268)
* Add preview title to BDC/HDFS components * Additional dialogs * More dialogs
This commit is contained in:
@@ -119,7 +119,7 @@ export class AddControllerDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private createDialog(): void {
|
private createDialog(): void {
|
||||||
this.dialog = azdata.window.createModelViewDialog(localize('textAddNewController', "Add New Controller"));
|
this.dialog = azdata.window.createModelViewDialog(localize('textAddNewController', "Add New Controller (preview)"));
|
||||||
this.dialog.registerContent(async view => {
|
this.dialog.registerContent(async view => {
|
||||||
this.uiModelBuilder = view.modelBuilder;
|
this.uiModelBuilder = view.modelBuilder;
|
||||||
|
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ export class BdcDashboard extends BdcDashboardPage {
|
|||||||
|
|
||||||
// Overview nav item - this will be the initial page
|
// Overview nav item - this will be the initial page
|
||||||
const overviewNavItemDiv = modelView.modelBuilder.divContainer().withLayout({ width: navWidth, height: '30px' }).withProperties({ clickable: true }).component();
|
const overviewNavItemDiv = modelView.modelBuilder.divContainer().withLayout({ width: navWidth, height: '30px' }).withProperties({ clickable: true }).component();
|
||||||
const overviewNavItemText = modelView.modelBuilder.text().withProperties({ value: localize('bdc.dashboard.overviewNavTitle', "Big data cluster overview") }).component();
|
const overviewNavItemText = modelView.modelBuilder.text().withProperties({ value: localize('bdc.dashboard.overviewNavTitle', "Big Data Cluster overview") }).component();
|
||||||
overviewNavItemText.updateCssStyles(selectedTabCss);
|
overviewNavItemText.updateCssStyles(selectedTabCss);
|
||||||
overviewNavItemDiv.addItem(overviewNavItemText, { CSSStyles: { 'user-select': 'text' } });
|
overviewNavItemDiv.addItem(overviewNavItemText, { CSSStyles: { 'user-select': 'text' } });
|
||||||
this.overviewPage = new BdcDashboardOverviewPage(this, this.model);
|
this.overviewPage = new BdcDashboardOverviewPage(this, this.model);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const localize = nls.loadMessageBundle();
|
|||||||
|
|
||||||
export class ConnectControllerDialog extends HdfsDialogBase<HdfsDialogProperties, ClusterController> {
|
export class ConnectControllerDialog extends HdfsDialogBase<HdfsDialogProperties, ClusterController> {
|
||||||
constructor(model: ConnectControllerModel) {
|
constructor(model: ConnectControllerModel) {
|
||||||
super(localize('connectController.dialog.title', "Connect to Controller"), model);
|
super(localize('connectController.dialog.title', "Connect to Controller (preview)"), model);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected getMainSectionComponents(): (azdata.FormComponentGroup | azdata.FormComponent)[] {
|
protected getMainSectionComponents(): (azdata.FormComponentGroup | azdata.FormComponent)[] {
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ export class MountHdfsDialog extends HdfsDialogBase<MountHdfsProperties, void> {
|
|||||||
private credentialsInputBox: azdata.InputBoxComponent;
|
private credentialsInputBox: azdata.InputBoxComponent;
|
||||||
|
|
||||||
constructor(model: MountHdfsDialogModel) {
|
constructor(model: MountHdfsDialogModel) {
|
||||||
super(localize('mount.dialog.title', "Mount HDFS Folder"), model);
|
super(localize('mount.dialog.title', "Mount HDFS Folder (preview)"), model);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected getMainSectionComponents(): (azdata.FormComponentGroup | azdata.FormComponent)[] {
|
protected getMainSectionComponents(): (azdata.FormComponentGroup | azdata.FormComponent)[] {
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ function registerCommands(context: vscode.ExtensionContext, treeDataProvider: Co
|
|||||||
});
|
});
|
||||||
|
|
||||||
vscode.commands.registerCommand(ManageControllerCommand, async (info: ControllerNode | BdcDashboardOptions, addOrUpdateController: boolean = false) => {
|
vscode.commands.registerCommand(ManageControllerCommand, async (info: ControllerNode | BdcDashboardOptions, addOrUpdateController: boolean = false) => {
|
||||||
const title: string = `${localize('bdc.dashboard.title', "Big Data Cluster Dashboard -")} ${ControllerNode.toIpAndPort(info.url)}`;
|
const title: string = `${localize('bdc.dashboard.title', "Big Data Cluster Dashboard (preview) -")} ${ControllerNode.toIpAndPort(info.url)}`;
|
||||||
if (addOrUpdateController) {
|
if (addOrUpdateController) {
|
||||||
// The info may be wrong, but if it is then we'll prompt to reconnect when the dashboard is opened
|
// The info may be wrong, but if it is then we'll prompt to reconnect when the dashboard is opened
|
||||||
// and update with the correct info then
|
// and update with the correct info then
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export const msgMissingNodeContext = localize('msgMissingNodeContext', "Node Com
|
|||||||
|
|
||||||
// HDFS Manage Access Dialog Constants ////////////////////////////////////
|
// HDFS Manage Access Dialog Constants ////////////////////////////////////
|
||||||
|
|
||||||
export const manageAccessTitle = localize('mssql.manageAccessTitle', "Manage Access");
|
export const manageAccessTitle = localize('mssql.manageAccessTitle', "Manage Access (preview)");
|
||||||
export const locationTitle = localize('mssql.locationTitle', "Location : ");
|
export const locationTitle = localize('mssql.locationTitle', "Location : ");
|
||||||
export const permissionsHeader = localize('mssql.permissionsTitle', "Permissions");
|
export const permissionsHeader = localize('mssql.permissionsTitle', "Permissions");
|
||||||
export const ownerPostfix = localize('mssql.ownerPostfix', " - Owner");
|
export const ownerPostfix = localize('mssql.ownerPostfix', " - Owner");
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export class SparkJobSubmissionDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async openDialog(path?: string): Promise<void> {
|
public async openDialog(path?: string): Promise<void> {
|
||||||
this._dialog = this.apiWrapper.createDialog(localize('sparkJobSubmission.DialogTitleNewJob', "New Job"));
|
this._dialog = this.apiWrapper.createDialog(localize('sparkJobSubmission.DialogTitleNewJob', "New Job (preview)"));
|
||||||
|
|
||||||
this._dataModel = new SparkJobSubmissionModel(this.sqlClusterConnection, this._dialog, this.appContext);
|
this._dataModel = new SparkJobSubmissionModel(this.sqlClusterConnection, this._dialog, this.appContext);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user