Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
feat: when template is empty, add urls command shows toast
Browse files Browse the repository at this point in the history
  • Loading branch information
phildenhoff committed Aug 24, 2023
1 parent 76e1eef commit 0923e7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/commands/addToRaindrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ export const addUrlsToRaindrop = async (): Promise<void> => {

const template = settings.formatting_template.add_link_mustache_template();
const text = renderAddedToRaindrop(newRaindrops, template);
if (!text) {
logseq.UI.showMsg("Added URLs to Raindrop");
return;
}

await logseq.Editor.insertBlock(uuid, text, {
sibling: false,
});
Expand Down

0 comments on commit 0923e7d

Please sign in to comment.