mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-06 17:23:53 -05:00
Revamping cutover page based on new mockups (#16547)
* WIP * Fixing some table issues * updating package.json * Fixing readable time * fixing display string * Handling null case in get12hourtime util method
This commit is contained in:
@@ -344,7 +344,10 @@ export class MigrationCutoverDialog {
|
||||
|
||||
this._refreshLoader = this._view.modelBuilder.loadingComponent().withProps({
|
||||
loading: false,
|
||||
height: '15px'
|
||||
CSSStyles: {
|
||||
'height': '8px',
|
||||
'margin-top': '4px'
|
||||
}
|
||||
}).component();
|
||||
|
||||
headerActions.addItem(this._refreshLoader, {
|
||||
@@ -549,7 +552,7 @@ export class MigrationCutoverDialog {
|
||||
this.showInfoField(this._fullBackupFileOnInfoField);
|
||||
|
||||
let backupLocation;
|
||||
const isBlobMigration = this._isBlobMigration();
|
||||
const isBlobMigration = this._model.isBlobMigration();
|
||||
// Displaying storage accounts and blob container for azure blob backups.
|
||||
if (isBlobMigration) {
|
||||
backupLocation = `${this._model._migration.migrationContext.properties.backupConfiguration.sourceLocation?.azureBlob?.storageAccountResourceId.split('/').pop()} - ${this._model._migration.migrationContext.properties.backupConfiguration.sourceLocation?.azureBlob?.blobContainerName}`;
|
||||
@@ -704,12 +707,8 @@ export class MigrationCutoverDialog {
|
||||
return migrationMode === MigrationMode.ONLINE;
|
||||
}
|
||||
|
||||
private _isBlobMigration(): boolean {
|
||||
return this._model._migration.migrationContext.properties.backupConfiguration.sourceLocation?.azureBlob !== undefined;
|
||||
}
|
||||
|
||||
private _shouldDisplayBackupFileTable(): boolean {
|
||||
return this._isProvisioned() && this._isOnlineMigration() && !this._isBlobMigration();
|
||||
return this._isProvisioned() && this._isOnlineMigration() && !this._model.isBlobMigration();
|
||||
}
|
||||
|
||||
private getMigrationStatus(): string {
|
||||
|
||||
Reference in New Issue
Block a user