fix lint formatting

Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
Anna No 2022-04-13 11:52:36 +07:00
parent 821851a99a
commit afa335ba30
No known key found for this signature in database
GPG Key ID: 08C11FFC23177C87
4 changed files with 9 additions and 10 deletions

View File

@ -33,7 +33,6 @@
function showLead() {
showPanel(board.component.EditCard, object._id, object._class, 'middle')
}
</script>
<div class="flex-col pt-2 pb-2 pr-4 pl-4">
@ -51,7 +50,8 @@
showMenu(evt)
}}
icon={IconMoreH}
size={'small'} />
size={'small'}
/>
</div>
</div>
<div class="flex-between">

View File

@ -28,14 +28,13 @@
export let object: WithLookup<Lead>
export let dragged: boolean
function showMenu(ev?: Event): void {
function showMenu (ev?: Event): void {
showPopup(ContextMenu, { object }, (ev as MouseEvent).target as HTMLElement)
}
function showLead() {
function showLead () {
showPanel(view.component.EditDoc, object._id, object._class, 'full')
}
</script>
<div class="flex-col pt-2 pb-2 pr-4 pl-4">
@ -53,7 +52,8 @@
showMenu(evt)
}}
icon={IconMoreH}
size={'small'} />
size={'small'}
/>
</div>
</div>
<div class="flex-between">

View File

@ -28,13 +28,12 @@
export let object: WithLookup<Applicant>
export let dragged: boolean
function showCandidate() {
function showCandidate () {
showPanel(view.component.EditDoc, object.attachedTo, object.attachedToClass, 'full')
}
$: todoItems = (object.$lookup?.todoItems as TodoItem[]) ?? []
$: doneTasks = todoItems.filter((it) => it.done)
</script>
<div class="flex-col pt-2 pb-2 pr-4 pl-4">

View File

@ -32,7 +32,6 @@
$: todoItems = (object.$lookup?.todoItems as TodoItem[]) ?? []
$: doneTasks = todoItems.filter((it) => it.done)
</script>
<div class="flex-col pt-2 pb-2 pr-4 pl-4">
@ -55,7 +54,8 @@
showMenu(evt)
}}
icon={IconMoreH}
size={'small'} />
size={'small'}
/>
</div>
</div>
<div class="caption-color mb-3 lines-limit-4">{object.name}</div>