title for notebook label in notebook toolbar

This commit is contained in:
rebornix 2021-05-21 14:47:40 -07:00
parent 77ff6eb03b
commit 6af49913c2
No known key found for this signature in database
GPG key ID: 181FC90D15393C20

View file

@ -48,7 +48,7 @@ export class ActionViewWithLabel extends MenuEntryActionViewItem {
if (this._actionLabel) {
this._actionLabel.classList.add('notebook-label');
this._actionLabel.innerText = this._action.label;
this._actionLabel.title = this._action.tooltip;
this._actionLabel.title = this._action.tooltip.length ? this._action.tooltip : this._action.label;
}
}
}