mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-27 02:42:11 +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 isCardArchive = true
|
||||||
let search: string = ''
|
let search: string = ''
|
||||||
$: query = { space, title: { $like: '%' + search + '%' } }
|
$: query = { space, title: { $like: '%' + search + '%' } }
|
||||||
$: label = isCardArchive
|
$: label = isCardArchive ? board.string.SwitchToLists : board.string.SwitchToCards
|
||||||
? board.string.SwitchToLists
|
|
||||||
: board.string.SwitchToCards
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="p-4">
|
<div class="p-4">
|
||||||
<Button {label} width={'100%'} on:click={() => { isCardArchive = !isCardArchive }} />
|
<Button
|
||||||
|
{label}
|
||||||
|
width={'100%'}
|
||||||
|
on:click={() => {
|
||||||
|
isCardArchive = !isCardArchive
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<div class="pt-4">
|
<div class="pt-4">
|
||||||
<TextArea bind:value={search} placeholder={board.string.SearchArchive}/>
|
<TextArea bind:value={search} placeholder={board.string.SearchArchive} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{#if isCardArchive}
|
{#if isCardArchive}
|
||||||
<CardsArchive {query}/>
|
<CardsArchive {query} />
|
||||||
{:else}
|
{:else}
|
||||||
<ListArchive {query}/>
|
<ListArchive {query} />
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -9,7 +9,9 @@
|
|||||||
|
|
||||||
let space: Space
|
let space: Space
|
||||||
const query = createQuery()
|
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()
|
const client = getClient()
|
||||||
|
|
||||||
@ -22,7 +24,7 @@
|
|||||||
|
|
||||||
<div class="ac-header divide full">
|
<div class="ac-header divide full">
|
||||||
{#if space}
|
{#if space}
|
||||||
<Header icon={classIcon(client, space._class)} label={space.name} description={space.description}/>
|
<Header icon={classIcon(client, space._class)} label={space.name} description={space.description} />
|
||||||
<Button label={border.string.ShowMenu} on:click={showMenu}/>
|
<Button label={border.string.ShowMenu} on:click={showMenu} />
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
let trace: string[] = []
|
let trace: string[] = []
|
||||||
let page: MenuPage
|
let page: MenuPage
|
||||||
const query = createQuery()
|
const query = createQuery()
|
||||||
$: query.query(board.class.MenuPage, { pageId: currentPageId }, result => {
|
$: query.query(board.class.MenuPage, { pageId: currentPageId }, (result) => {
|
||||||
;[page] = result
|
;[page] = result
|
||||||
})
|
})
|
||||||
function setKey (e: CustomEvent) {
|
function setKey (e: CustomEvent) {
|
||||||
@ -22,7 +22,7 @@
|
|||||||
currentPageId = e.detail
|
currentPageId = e.detail
|
||||||
}
|
}
|
||||||
function onBack () {
|
function onBack () {
|
||||||
[currentPageId = board.menuPageId.Main, ...trace] = trace
|
;[currentPageId = board.menuPageId.Main, ...trace] = trace
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -31,7 +31,7 @@
|
|||||||
{#if trace.length}
|
{#if trace.length}
|
||||||
<Button icon={IconBack} kind="transparent" size="x-large" on:click={onBack} />
|
<Button icon={IconBack} kind="transparent" size="x-large" on:click={onBack} />
|
||||||
{:else}
|
{:else}
|
||||||
<div class="ml-12"/>
|
<div class="ml-12" />
|
||||||
{/if}
|
{/if}
|
||||||
<div class="flex-center fs-title">
|
<div class="flex-center fs-title">
|
||||||
<Label label={page.label} />
|
<Label label={page.label} />
|
||||||
@ -42,11 +42,12 @@
|
|||||||
size="x-large"
|
size="x-large"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
dispatch('close')
|
dispatch('close')
|
||||||
}} />
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{#if currentSpace}
|
{#if currentSpace}
|
||||||
<div class="vScroll mb-4">
|
<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>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -8,5 +8,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="p-4">
|
<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>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user