feat: ability to favorite tags + customize icon (#1858)

This commit is contained in:
Mo
2022-10-21 11:11:31 -05:00
committed by GitHub
parent 3b048a31aa
commit cbd0063926
38 changed files with 568 additions and 262 deletions

View File

@@ -236,9 +236,11 @@ export class LinkingController extends AbstractViewController {
} else if (item instanceof FileItem) {
const icon = this.application.iconsController.getIconForFileType(item.mimeType)
return [icon, 'text-info']
} else if (item instanceof SNTag) {
return [item.iconString as IconType, 'text-info']
}
return ['hashtag', 'text-info']
throw new Error('Unhandled case in getLinkedItemIcon')
}
activateItem = async (item: LinkableItem): Promise<AppPaneId | undefined> => {