Browse Source

Sort path groupings

gh-pages
Andrew Kingston 6 years ago
parent
commit
e472150f30
  1. 5
      packages/builder/src/components/userInterface/ComponentNavigationTree/index.svelte

5
packages/builder/src/components/userInterface/ComponentNavigationTree/index.svelte

@ -1,11 +1,12 @@
<script>
import { goto } from "@sveltech/routify"
import { store } from "builderStore"
import PathTree from "./PathTree.svelte"
$: paths = Object.keys($store.routes || {}).sort()
</script>
<div class="root">
{#each Object.keys($store.routes || {}) as path}
{#each paths as path}
<PathTree {path} route={$store.routes[path]} />
{/each}
</div>

Loading…
Cancel
Save