mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 22:12:44 +03:00
swithc viewlets
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
4bb2f869bf
commit
c20ddfd20b
@ -57,6 +57,7 @@
|
||||
{#await buildModel(client, _class, config, options)}
|
||||
<Loading/>
|
||||
{:then model}
|
||||
KANBAN
|
||||
<div class="container">
|
||||
<ScrollBox vertical stretch noShift>
|
||||
<table class="table-body">
|
||||
|
@ -17,12 +17,14 @@ import StringEditor from './components/StringEditor.svelte'
|
||||
import StringPresenter from './components/StringPresenter.svelte'
|
||||
import StatePresenter from './components/StatePresenter.svelte'
|
||||
import TableView from './components/TableView.svelte'
|
||||
import KanbanView from './components/KanbanView.svelte'
|
||||
|
||||
export default async () => ({
|
||||
component: {
|
||||
StringEditor,
|
||||
StringPresenter,
|
||||
StatePresenter,
|
||||
TableView
|
||||
TableView,
|
||||
KanbanView
|
||||
},
|
||||
})
|
||||
|
@ -54,8 +54,8 @@ let selected = 0
|
||||
|
||||
<div class="flex">
|
||||
{#each viewlets as viewlet, i}
|
||||
<div class="btn" class:selected>
|
||||
<div class="icon"><Icon icon={viewlet.$lookup?.descriptor?.icon} size={'small'}/></div>
|
||||
<div class="btn" class:selected={selected === i}>
|
||||
<div class="icon" on:click={()=>{ selected = i }}><Icon icon={viewlet.$lookup?.descriptor?.icon} size={'small'}/></div>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user