-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow filters groups to be selected in group edit mode
- Loading branch information
1 parent
e1307db
commit 0d97858
Showing
3 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script lang="ts"> | ||
import type { PortfolioGlobals } from '$lib'; | ||
import Chip from './Chip.svelte'; | ||
export let globals: PortfolioGlobals; | ||
export let groupId: string; | ||
export let link: boolean = false; | ||
export let selected: boolean = false; | ||
$: group = globals.groups[groupId]; | ||
</script> | ||
|
||
<Chip | ||
on:click | ||
name={group.info.name} | ||
description={group.info.description} | ||
color={group.info.color} | ||
{selected} | ||
link={link ? `/${groupId}` : undefined} | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { default as Chip } from './Chip.svelte'; | ||
export { default as ItemChipList } from './ItemChipList.svelte'; | ||
export { default as ItemChip } from './ItemChip.svelte'; | ||
export { default as GroupChip } from './GroupChip.svelte'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters