mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
@@ -25,6 +25,7 @@ import { values } from 'vs/base/common/collections';
|
|||||||
import { onUnexpectedError } from 'vs/base/common/errors';
|
import { onUnexpectedError } from 'vs/base/common/errors';
|
||||||
import { ILogService } from 'vs/platform/log/common/log';
|
import { ILogService } from 'vs/platform/log/common/log';
|
||||||
import { INotificationService, Severity, INotification } from 'vs/platform/notification/common/notification';
|
import { INotificationService, Severity, INotification } from 'vs/platform/notification/common/notification';
|
||||||
|
import { Action } from 'vs/base/common/actions';
|
||||||
|
|
||||||
export class AccountManagementService implements IAccountManagementService {
|
export class AccountManagementService implements IAccountManagementService {
|
||||||
// CONSTANTS ///////////////////////////////////////////////////////////
|
// CONSTANTS ///////////////////////////////////////////////////////////
|
||||||
@@ -119,11 +120,16 @@ export class AccountManagementService implements IAccountManagementService {
|
|||||||
* @return Promise to return an account
|
* @return Promise to return an account
|
||||||
*/
|
*/
|
||||||
public addAccount(providerId: string): Thenable<void> {
|
public addAccount(providerId: string): Thenable<void> {
|
||||||
|
const closeAction: Action = new Action('closeAddingAccount', localize('accountManagementService.close', "Close"), undefined, true);
|
||||||
|
|
||||||
const loginNotification: INotification = {
|
const loginNotification: INotification = {
|
||||||
severity: Severity.Info,
|
severity: Severity.Info,
|
||||||
message: localize('loggingIn', "Adding account..."),
|
message: localize('loggingIn', "Adding account..."),
|
||||||
progress: {
|
progress: {
|
||||||
infinite: true
|
infinite: true
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
primary: [closeAction]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user