mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	chore(views/table): use translations for new label/relation
This commit is contained in:
		@@ -1958,7 +1958,9 @@
 | 
				
			|||||||
    "add-column-to-the-right": "Add column to the right",
 | 
					    "add-column-to-the-right": "Add column to the right",
 | 
				
			||||||
    "edit-column": "Edit column",
 | 
					    "edit-column": "Edit column",
 | 
				
			||||||
    "delete_column_confirmation": "Are you sure you want to delete this column? The corresponding attribute will be removed from all notes.",
 | 
					    "delete_column_confirmation": "Are you sure you want to delete this column? The corresponding attribute will be removed from all notes.",
 | 
				
			||||||
    "delete-column": "Delete column"
 | 
					    "delete-column": "Delete column",
 | 
				
			||||||
 | 
					    "new-column-label": "Label",
 | 
				
			||||||
 | 
					    "new-column-relation": "Relation"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "book_properties_config": {
 | 
					  "book_properties_config": {
 | 
				
			||||||
    "hide-weekends": "Hide weekends",
 | 
					    "hide-weekends": "Hide weekends",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -249,7 +249,7 @@ function buildColumnItems(tabulator: Tabulator) {
 | 
				
			|||||||
function buildInsertSubmenu(e: MouseEvent, referenceColumn: ColumnComponent, direction: "before" | "after"): MenuItem<unknown>[] {
 | 
					function buildInsertSubmenu(e: MouseEvent, referenceColumn: ColumnComponent, direction: "before" | "after"): MenuItem<unknown>[] {
 | 
				
			||||||
    return [
 | 
					    return [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            title: "Label",
 | 
					            title: t("table_view.new-column-label"),
 | 
				
			||||||
            handler: () => {
 | 
					            handler: () => {
 | 
				
			||||||
                getParentComponent(e)?.triggerCommand("addNewTableColumn", {
 | 
					                getParentComponent(e)?.triggerCommand("addNewTableColumn", {
 | 
				
			||||||
                    referenceColumn,
 | 
					                    referenceColumn,
 | 
				
			||||||
@@ -259,7 +259,7 @@ function buildInsertSubmenu(e: MouseEvent, referenceColumn: ColumnComponent, dir
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            title: "Relation",
 | 
					            title: t("table_view.new-column-relation"),
 | 
				
			||||||
            handler: () => {
 | 
					            handler: () => {
 | 
				
			||||||
                getParentComponent(e)?.triggerCommand("addNewTableColumn", {
 | 
					                getParentComponent(e)?.triggerCommand("addNewTableColumn", {
 | 
				
			||||||
                    referenceColumn,
 | 
					                    referenceColumn,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user