mirror of
https://github.com/zadam/trilium.git
synced 2025-09-11 09:06:31 +08:00
chore(views/table): add icons to add new column/row context menu
This commit is contained in:
parent
ceb08593d8
commit
cb8a5cbb62
1 changed files with 2 additions and 0 deletions
|
@ -250,6 +250,7 @@ function buildInsertSubmenu(e: MouseEvent, referenceColumn: ColumnComponent, dir
|
|||
return [
|
||||
{
|
||||
title: t("table_view.new-column-label"),
|
||||
uiIcon: "bx bx-hash",
|
||||
handler: () => {
|
||||
getParentComponent(e)?.triggerCommand("addNewTableColumn", {
|
||||
referenceColumn,
|
||||
|
@ -260,6 +261,7 @@ function buildInsertSubmenu(e: MouseEvent, referenceColumn: ColumnComponent, dir
|
|||
},
|
||||
{
|
||||
title: t("table_view.new-column-relation"),
|
||||
uiIcon: "bx bx-transfer",
|
||||
handler: () => {
|
||||
getParentComponent(e)?.triggerCommand("addNewTableColumn", {
|
||||
referenceColumn,
|
||||
|
|
Loading…
Add table
Reference in a new issue