Skip to content

Commit

Permalink
Fix related trait row links
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdabbs committed Nov 14, 2020
1 parent cd8d16a commit f9e266f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/components/Properties/Spaces.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import { Link } from '../Shared'
import { Related } from '../Traits'
import type { Property, Space, Trait, Traits } from '../../models'
Expand All @@ -9,4 +10,6 @@
}
</script>

<Related label="Space" {related} />
<Related label="Space" {related} let:space>
<Link.Space {space} />
</Related>
5 changes: 4 additions & 1 deletion src/components/Spaces/Properties.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import { Link } from '../Shared'
import { Related } from '../Traits'
import type { Property, Space, Trait, Traits } from '../../models'
Expand All @@ -9,4 +10,6 @@
}
</script>

<Related label="Property" {related} />
<Related label="Property" {related} let:property>
<Link.Property {property} />
</Related>
3 changes: 1 addition & 2 deletions src/components/Traits/Related.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
{#each filtered as [space, property, trait] ([space.id, property.id])}
<tr>
<td>
<!-- FIXME: conditionally space or property -->
<Link.Space {space} />
<slot {space} {property} />
</td>
<td>
<Link.Trait {space} {property}>
Expand Down

0 comments on commit f9e266f

Please sign in to comment.