Skip to content

Commit

Permalink
Merge pull request #210 from decaf-dev/favorite-fixes
Browse files Browse the repository at this point in the history
Favorite fixes
  • Loading branch information
decaf-dev authored Jul 16, 2024
2 parents 1d2bd71 + 29e2837 commit b4e55fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/svelte/app/components/grid-card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,7 @@
{/if}
{#if isFavorite === true}
<div class="vault-explorer-grid-card__favorite">
<Icon
iconId="star"
ariaLabel="Favorite"
color="var(--color-yellow)"
/>
<Icon iconId="star" ariaLabel="Favorite" />
</div>
{/if}
</div>
Expand All @@ -235,6 +231,7 @@
{#if url !== null}
<IconButton
iconId="external-link"
ariaLabel="Open in browser"
noPadding
on:click={handleUrlClick}
/>
Expand Down
5 changes: 4 additions & 1 deletion src/svelte/app/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import FavoritesFilter from "./components/favorites-filter.svelte";
import TabList from "../shared/components/tab-list.svelte";
import Tab from "../shared/components/tab.svelte";
import { TFile } from "obsidian";
import { Notice, TFile } from "obsidian";
import {
TCustomFilter,
TDashboardView,
Expand Down Expand Up @@ -703,6 +703,9 @@
//If the favorite property is not set, return
if (favoritePropertyName === "") {
new Notice(
"Please select a favorite property in the Vault Explorer settings to use this feature",
);
return;
}
Expand Down

0 comments on commit b4e55fb

Please sign in to comment.