mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-25 01:39:53 +00:00
Fix formatting issues (#1617)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
be49938461
commit
e253148103
@ -11,13 +11,17 @@
|
||||
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} />
|
||||
</div>
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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>
|
||||
|
||||
@ -42,7 +42,8 @@
|
||||
size="x-large"
|
||||
on:click={() => {
|
||||
dispatch('close')
|
||||
}} />
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
{#if currentSpace}
|
||||
<div class="vScroll mb-4">
|
||||
|
@ -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