mirror of
https://github.com/Eugeny/tabby.git
synced 2025-01-24 14:14:18 +08:00
build fix
This commit is contained in:
parent
f2b6cdf97c
commit
782128308c
@ -109,6 +109,7 @@ export class CommonOptionsContextMenu extends TabContextMenuItemProvider {
|
|||||||
async getItems (tab: BaseTabComponent, tabHeader?: TabHeaderComponent): Promise<MenuItemOptions[]> {
|
async getItems (tab: BaseTabComponent, tabHeader?: TabHeaderComponent): Promise<MenuItemOptions[]> {
|
||||||
let items: MenuItemOptions[] = []
|
let items: MenuItemOptions[] = []
|
||||||
if (tabHeader) {
|
if (tabHeader) {
|
||||||
|
const currentColor = TAB_COLORS.find(x => x.value === tab.color)?.name
|
||||||
items = [
|
items = [
|
||||||
...items,
|
...items,
|
||||||
{
|
{
|
||||||
@ -121,7 +122,7 @@ export class CommonOptionsContextMenu extends TabContextMenuItemProvider {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.translate.instant('Color'),
|
label: this.translate.instant('Color'),
|
||||||
sublabel: this.translate.instant(TAB_COLORS.find(x => x.value === tab.color)?.name),
|
sublabel: currentColor ? this.translate.instant(currentColor) : undefined,
|
||||||
submenu: TAB_COLORS.map(color => ({
|
submenu: TAB_COLORS.map(color => ({
|
||||||
label: this.translate.instant(color.name) ?? color.name,
|
label: this.translate.instant(color.name) ?? color.name,
|
||||||
type: 'radio',
|
type: 'radio',
|
||||||
|
Loading…
Reference in New Issue
Block a user