mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fix the CI (#7633)
This commit is contained in:
@@ -18,7 +18,7 @@ const $ = dom.$;
|
|||||||
|
|
||||||
//Map used to store names and alternative names for chart types.
|
//Map used to store names and alternative names for chart types.
|
||||||
//This is mainly used for comparison when options are parsed into the constructor.
|
//This is mainly used for comparison when options are parsed into the constructor.
|
||||||
const altNameHash : {[oldName: string]: string} = {
|
const altNameHash: { [oldName: string]: string } = {
|
||||||
['horizontalBar']: 'Horziontal Bar',
|
['horizontalBar']: 'Horziontal Bar',
|
||||||
['bar']: 'Bar',
|
['bar']: 'Bar',
|
||||||
['line']: 'Line',
|
['line']: 'Line',
|
||||||
@@ -75,7 +75,7 @@ export class SelectBox extends vsSelectBox {
|
|||||||
|
|
||||||
constructor(options: string[], selectedOption: string, contextViewProvider: IContextViewProvider, container?: HTMLElement, selectBoxOptions?: ISelectBoxOptions) {
|
constructor(options: string[], selectedOption: string, contextViewProvider: IContextViewProvider, container?: HTMLElement, selectBoxOptions?: ISelectBoxOptions) {
|
||||||
//originally {text :option };
|
//originally {text :option };
|
||||||
super(options.map(option => {return {text : SelectBox.parseName(option)}; }), 0, contextViewProvider, undefined, selectBoxOptions);
|
super(options.map(option => { return { text: SelectBox.parseName(option) }; }), 0, contextViewProvider, undefined, selectBoxOptions);
|
||||||
|
|
||||||
this._optionsDictionary = new Map<string, number>();
|
this._optionsDictionary = new Map<string, number>();
|
||||||
for (let i = 0; i < options.length; i++) {
|
for (let i = 0; i < options.length; i++) {
|
||||||
@@ -111,7 +111,7 @@ export class SelectBox extends vsSelectBox {
|
|||||||
|
|
||||||
//static method that is used to replace original names of options into user-friendly ones for display.
|
//static method that is used to replace original names of options into user-friendly ones for display.
|
||||||
private static parseName(oldName: string): string {
|
private static parseName(oldName: string): string {
|
||||||
if(altNameHash[oldName] !== undefined) {
|
if (altNameHash[oldName] !== undefined) {
|
||||||
return altNameHash[oldName];
|
return altNameHash[oldName];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user