mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-19 03:21:36 -04:00
* adds aria-label to inputs for connection * formatting * add ariaLabels to all checkboxes/inputboxes/dropdowns * fix labels on database dropdown action * fix compile errors * remove unnecessary code
23 lines
853 B
TypeScript
23 lines
853 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { Action } from 'vs/base/common/actions';
|
|
import { TPromise } from 'vs/base/common/winjs.base';
|
|
import * as nls from 'vs/nls';
|
|
|
|
export class ToggleDropdownAction extends Action {
|
|
private static readonly ID = 'dropdownAction.toggle';
|
|
private static readonly ICON = 'dropdown-arrow';
|
|
|
|
constructor(private _fn: () => any, label: string) {
|
|
super(ToggleDropdownAction.ID, label, ToggleDropdownAction.ICON);
|
|
}
|
|
|
|
public run(): TPromise<boolean> {
|
|
this._fn();
|
|
return TPromise.as(true);
|
|
}
|
|
}
|