mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-26 10:20:01 +00:00
Fix formatting issues (#1617)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
be49938461
commit
e253148103
@ -11,19 +11,23 @@
|
||||
let isCardArchive = true
|
||||
let search: string = ''
|
||||
$: query = { space, title: { $like: '%' + search + '%' } }
|
||||
$: label = isCardArchive
|
||||
? board.string.SwitchToLists
|
||||
: board.string.SwitchToCards
|
||||
$: label = isCardArchive ? board.string.SwitchToLists : board.string.SwitchToCards
|
||||
</script>
|
||||
|
||||
<div class="p-4">
|
||||
<Button {label} width={'100%'} on:click={() => { isCardArchive = !isCardArchive }} />
|
||||
<Button
|
||||
{label}
|
||||
width={'100%'}
|
||||
on:click={() => {
|
||||
isCardArchive = !isCardArchive
|
||||
}}
|
||||
/>
|
||||
<div class="pt-4">
|
||||
<TextArea bind:value={search} placeholder={board.string.SearchArchive}/>
|
||||
<TextArea bind:value={search} placeholder={board.string.SearchArchive} />
|
||||
</div>
|
||||
</div>
|
||||
{#if isCardArchive}
|
||||
<CardsArchive {query}/>
|
||||
<CardsArchive {query} />
|
||||
{:else}
|
||||
<ListArchive {query}/>
|
||||
<ListArchive {query} />
|
||||
{/if}
|
||||
|
@ -9,7 +9,9 @@
|
||||
|
||||
let space: Space
|
||||
const query = createQuery()
|
||||
$: query.query(core.class.Space, { _id: spaceId }, result => { space = result[0] })
|
||||
$: query.query(core.class.Space, { _id: spaceId }, (result) => {
|
||||
space = result[0]
|
||||
})
|
||||
|
||||
const client = getClient()
|
||||
|
||||
@ -22,7 +24,7 @@
|
||||
|
||||
<div class="ac-header divide full">
|
||||
{#if space}
|
||||
<Header icon={classIcon(client, space._class)} label={space.name} description={space.description}/>
|
||||
<Button label={border.string.ShowMenu} on:click={showMenu}/>
|
||||
<Header icon={classIcon(client, space._class)} label={space.name} description={space.description} />
|
||||
<Button label={border.string.ShowMenu} on:click={showMenu} />
|
||||
{/if}
|
||||
</div>
|
||||
|
@ -14,7 +14,7 @@
|
||||
let trace: string[] = []
|
||||
let page: MenuPage
|
||||
const query = createQuery()
|
||||
$: query.query(board.class.MenuPage, { pageId: currentPageId }, result => {
|
||||
$: query.query(board.class.MenuPage, { pageId: currentPageId }, (result) => {
|
||||
;[page] = result
|
||||
})
|
||||
function setKey (e: CustomEvent) {
|
||||
@ -22,7 +22,7 @@
|
||||
currentPageId = e.detail
|
||||
}
|
||||
function onBack () {
|
||||
[currentPageId = board.menuPageId.Main, ...trace] = trace
|
||||
;[currentPageId = board.menuPageId.Main, ...trace] = trace
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
{#if trace.length}
|
||||
<Button icon={IconBack} kind="transparent" size="x-large" on:click={onBack} />
|
||||
{:else}
|
||||
<div class="ml-12"/>
|
||||
<div class="ml-12" />
|
||||
{/if}
|
||||
<div class="flex-center fs-title">
|
||||
<Label label={page.label} />
|
||||
@ -42,11 +42,12 @@
|
||||
size="x-large"
|
||||
on:click={() => {
|
||||
dispatch('close')
|
||||
}} />
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
{#if currentSpace}
|
||||
<div class="vScroll mb-4">
|
||||
<Component is={page.component} props={{ space: currentSpace }} on:change={setKey}/>
|
||||
<Component is={page.component} props={{ space: currentSpace }} on:change={setKey} />
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
|
@ -8,5 +8,11 @@
|
||||
</script>
|
||||
|
||||
<div class="p-4">
|
||||
<Button label={plugin.string.Archive} width={'100%'} on:click={() => { dispatch('change', board.menuPageId.Archive) }} />
|
||||
<Button
|
||||
label={plugin.string.Archive}
|
||||
width={'100%'}
|
||||
on:click={() => {
|
||||
dispatch('change', board.menuPageId.Archive)
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user