mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 09:35:38 -05:00
Adding support for blob containers in migration extension (#15516)
* Adding support for blob containers and infoboxes * vbumping migration for May month release. * setting resotered count to 0 when the active backupsets is empty. * Removing unnecessary ! * Excluding readme gif from the vsix package * Removing info box as it not needed now. * Removing all the changes to migration mode page for the infobox
This commit is contained in:
@@ -115,7 +115,6 @@ export class DatabaseBackupPage extends MigrationWizardPage {
|
||||
.withProps({
|
||||
name: buttonGroup,
|
||||
label: constants.DATABASE_BACKUP_NC_BLOB_STORAGE_RADIO_LABEL,
|
||||
enabled: false,
|
||||
CSSStyles: {
|
||||
'font-size': '13px'
|
||||
}
|
||||
|
||||
@@ -57,6 +57,15 @@ export class IntergrationRuntimePage extends MigrationWizardPage {
|
||||
|
||||
this._statusLoadingComponent = view.modelBuilder.loadingComponent().withItem(this.createDMSDetailsContainer()).component();
|
||||
|
||||
const dmsPortalInfo = this._view.modelBuilder.infoBox().withProps({
|
||||
text: constants.DMS_PORTAL_INFO,
|
||||
style: 'information',
|
||||
CSSStyles: {
|
||||
'font-size': '13px'
|
||||
},
|
||||
width: WIZARD_INPUT_COMPONENT_WIDTH
|
||||
}).component();
|
||||
|
||||
this._form = view.modelBuilder.formContainer()
|
||||
.withFormItems(
|
||||
[
|
||||
@@ -66,6 +75,9 @@ export class IntergrationRuntimePage extends MigrationWizardPage {
|
||||
{
|
||||
component: createNewMigrationService
|
||||
},
|
||||
{
|
||||
component: dmsPortalInfo
|
||||
},
|
||||
{
|
||||
component: this._statusLoadingComponent
|
||||
}
|
||||
|
||||
@@ -10,16 +10,19 @@ import { MigrationMode, MigrationStateModel, StateChangeEvent } from '../models/
|
||||
import * as constants from '../constants/strings';
|
||||
|
||||
export class MigrationModePage extends MigrationWizardPage {
|
||||
private _view!: azdata.ModelView;
|
||||
|
||||
constructor(wizard: azdata.window.Wizard, migrationStateModel: MigrationStateModel) {
|
||||
super(wizard, azdata.window.createWizardPage(constants.DATABASE_BACKUP_MIGRATION_MODE_LABEL, 'MigrationModePage'), migrationStateModel);
|
||||
this.wizardPage.description = constants.DATABASE_BACKUP_MIGRATION_MODE_DESCRIPTION;
|
||||
}
|
||||
|
||||
protected async registerContent(view: azdata.ModelView): Promise<void> {
|
||||
this._view = view;
|
||||
const form = view.modelBuilder.formContainer()
|
||||
.withFormItems(
|
||||
[
|
||||
this.migrationModeContainer(view),
|
||||
this.migrationModeContainer(),
|
||||
]
|
||||
);
|
||||
await view.initializeModel(form.component());
|
||||
@@ -38,10 +41,10 @@ export class MigrationModePage extends MigrationWizardPage {
|
||||
protected async handleStateChange(e: StateChangeEvent): Promise<void> {
|
||||
}
|
||||
|
||||
private migrationModeContainer(view: azdata.ModelView): azdata.FormComponent {
|
||||
private migrationModeContainer(): azdata.FormComponent {
|
||||
const buttonGroup = 'cutoverContainer';
|
||||
|
||||
const onlineButton = view.modelBuilder.radioButton().withProps({
|
||||
const onlineButton = this._view.modelBuilder.radioButton().withProps({
|
||||
label: constants.DATABASE_BACKUP_MIGRATION_MODE_ONLINE_LABEL,
|
||||
name: buttonGroup,
|
||||
CSSStyles: {
|
||||
@@ -51,7 +54,7 @@ export class MigrationModePage extends MigrationWizardPage {
|
||||
checked: true
|
||||
}).component();
|
||||
|
||||
const onlineDescription = view.modelBuilder.text().withProps({
|
||||
const onlineDescription = this._view.modelBuilder.text().withProps({
|
||||
value: constants.DATABASE_BACKUP_MIGRATION_MODE_ONLINE_DESCRIPTION,
|
||||
CSSStyles: {
|
||||
'font-size': '13px',
|
||||
@@ -67,7 +70,7 @@ export class MigrationModePage extends MigrationWizardPage {
|
||||
}
|
||||
});
|
||||
|
||||
const offlineButton = view.modelBuilder.radioButton().withProps({
|
||||
const offlineButton = this._view.modelBuilder.radioButton().withProps({
|
||||
label: constants.DATABASE_BACKUP_MIGRATION_MODE_OFFLINE_LABEL,
|
||||
name: buttonGroup,
|
||||
CSSStyles: {
|
||||
@@ -76,7 +79,7 @@ export class MigrationModePage extends MigrationWizardPage {
|
||||
},
|
||||
}).component();
|
||||
|
||||
const offlineDescription = view.modelBuilder.text().withProps({
|
||||
const offlineDescription = this._view.modelBuilder.text().withProps({
|
||||
value: constants.DATABASE_BACKUP_MIGRATION_MODE_OFFLINE_DESCRIPTION,
|
||||
CSSStyles: {
|
||||
'font-size': '13px',
|
||||
@@ -93,7 +96,7 @@ export class MigrationModePage extends MigrationWizardPage {
|
||||
}
|
||||
});
|
||||
|
||||
const flexContainer = view.modelBuilder.flexContainer().withItems(
|
||||
const flexContainer = this._view.modelBuilder.flexContainer().withItems(
|
||||
[
|
||||
onlineButton,
|
||||
onlineDescription,
|
||||
|
||||
Reference in New Issue
Block a user