Workspace
openCreate('', 'space')} type="button">+
{#if loading}
Loading...
{:else if error}
{error}
{:else} {#each roots() as node (node.id)}
{#if hasKids(node.id)}
toggle(node.id)} type="button">{expandedNodes[node.id] ? '\u25BE' : '\u25B8'}
{:else}
{/if}
{icon(node.type)}
selectNode(node.id)} type="button">{node.title}
openCreate(node.id, 'case')} type="button">+
{#if expandedNodes[node.id]} {#each childrenOf(node.id) as child (child.id)}
{#if hasKids(child.id)}
toggle(child.id)} type="button">{expandedNodes[child.id] ? '\u25BE' : '\u25B8'}
{:else}
{/if}
{icon(child.type)}
selectNode(child.id)} type="button">{child.title}
openCreate(child.id, 'folder')} type="button">+
{/each} {/if}
{/each} {/if} {#if showCreate}
New {newNodeType}
{'\u2715'}
{creating ? '...' : 'Create'}
Cancel
{/if}