mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 01:25:37 -05:00
add titles to collapse expand button (#8607)
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user