add titles to collapse expand button (#8607)

This commit is contained in:
Chris LaFreniere
2019-12-10 21:08:28 -08:00
committed by GitHub
parent 659f392196
commit 302e8305ef

View File

@@ -7,6 +7,7 @@ import 'vs/css!./code';
import { OnInit, Component, Input, ElementRef, ViewChild, SimpleChange, OnChanges } from '@angular/core';
import { CellView } from 'sql/workbench/contrib/notebook/browser/cellViews/interfaces';
import { ICellModel } from 'sql/workbench/contrib/notebook/browser/models/modelInterfaces';
import { localize } from 'vs/nls';
export const COLLAPSE_SELECTOR: string = 'collapse-component';
@@ -27,6 +28,8 @@ export class CollapseComponent extends CellView implements OnInit, OnChanges {
}
ngOnInit() {
this.collapseCellButtonElement.nativeElement.title = localize('collapseCellContents', "Collapse code cell contents");
this.expandCellButtonElement.nativeElement.title = localize('expandCellContents', "Expand code cell contents");
}
ngOnChanges(changes: { [propKey: string]: SimpleChange }) {