mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 01:25:36 -05:00
add error banner for failed migration cutover and cancel migration (#17106)
This commit is contained in:
@@ -249,9 +249,9 @@ export class SqlMigrationServiceDetailsDialog {
|
||||
})
|
||||
.component();
|
||||
|
||||
this._disposables.push(copyKey1Button.onDidClick((e) => {
|
||||
vscode.env.clipboard.writeText(keys.authKey1);
|
||||
vscode.window.showInformationMessage(constants.SERVICE_KEY1_COPIED_HELP);
|
||||
this._disposables.push(copyKey1Button.onDidClick(async (e) => {
|
||||
await vscode.env.clipboard.writeText(keys.authKey1);
|
||||
void vscode.window.showInformationMessage(constants.SERVICE_KEY1_COPIED_HELP);
|
||||
}));
|
||||
|
||||
const copyKey2Button = view.modelBuilder
|
||||
@@ -265,9 +265,9 @@ export class SqlMigrationServiceDetailsDialog {
|
||||
})
|
||||
.component();
|
||||
|
||||
this._disposables.push(copyKey2Button.onDidClick((e) => {
|
||||
vscode.env.clipboard.writeText(keys.authKey2);
|
||||
vscode.window.showInformationMessage(constants.SERVICE_KEY2_COPIED_HELP);
|
||||
this._disposables.push(copyKey2Button.onDidClick(async (e) => {
|
||||
await vscode.env.clipboard.writeText(keys.authKey2);
|
||||
void vscode.window.showInformationMessage(constants.SERVICE_KEY2_COPIED_HELP);
|
||||
}));
|
||||
|
||||
const refreshKey1Button = view.modelBuilder
|
||||
@@ -296,7 +296,7 @@ export class SqlMigrationServiceDetailsDialog {
|
||||
this._disposables.push(refreshKey2Button.onDidClick(
|
||||
async (e) => await this._regenerateAuthKey(view, migrationContext, AUTH_KEY2)));
|
||||
|
||||
this._migrationServiceAuthKeyTable.updateProperties({
|
||||
await this._migrationServiceAuthKeyTable.updateProperties({
|
||||
dataValues: [
|
||||
[
|
||||
{ value: constants.SERVICE_KEY1_LABEL },
|
||||
|
||||
Reference in New Issue
Block a user