fixes & tweaks

This commit is contained in:
zadam
2019-08-28 21:15:16 +02:00
parent 650d9e0b27
commit f331172c7d
10 changed files with 90 additions and 58 deletions

View File

@@ -6,6 +6,16 @@ class WhatLinksHereWidget extends StandardWidget {
getMaxHeight() { return "200px"; }
getHeaderActions() {
const $showFullButton = $("<a>").append("show link map").addClass('widget-header-action');
$showFullButton.click(async () => {
const linkMapDialog = await import("../dialogs/link_map.js");
linkMapDialog.showDialog();
});
return [$showFullButton];
}
async doRenderBody() {
const targetRelations = await this.ctx.note.getTargetRelations();