mirror of
https://github.com/cosmicoptima/loom.git
synced 2026-07-22 07:40:25 +00:00
fix
This commit is contained in:
parent
3ff76b40ea
commit
436bac527c
3 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "loom",
|
||||
"name": "Loom",
|
||||
"version": "1.15.1",
|
||||
"version": "1.15.2",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Loom in Obsidian",
|
||||
"author": "celeste",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-loom",
|
||||
"version": "1.15.1",
|
||||
"version": "1.15.2",
|
||||
"description": "Loom in Obsidian",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
4
views.ts
4
views.ts
|
|
@ -352,7 +352,7 @@ export class LoomView extends ItemView {
|
|||
.filter(([, node]) => node.parentId === null)
|
||||
const deletable = rootNodes.length !== 1 || rootNodes[0][0] !== id;
|
||||
|
||||
const showMenu = (event) => {
|
||||
const showMenu = (event: MouseEvent) => {
|
||||
const menu = new Menu();
|
||||
|
||||
const menuItem = (name: string, icon: string, callback: () => void) =>
|
||||
|
|
@ -409,7 +409,7 @@ export class LoomView extends ItemView {
|
|||
cls: "loom__node-buttons"
|
||||
});
|
||||
|
||||
const button = (label: string, icon: string, callback: () => void) => {
|
||||
const button = (label: string, icon: string, callback: (event: MouseEvent) => void) => {
|
||||
const button_ = nodeButtonsContainer.createDiv({
|
||||
cls: "loom__node-button",
|
||||
attr: { "aria-label": label },
|
||||
|
|
|
|||
Loading…
Reference in a new issue