diff --git a/plugins/board-resources/src/components/EditCard.svelte b/plugins/board-resources/src/components/EditCard.svelte
index 96cb3076da..ec13ead43f 100644
--- a/plugins/board-resources/src/components/EditCard.svelte
+++ b/plugins/board-resources/src/components/EditCard.svelte
@@ -44,10 +44,11 @@
let handleMove: () => void
$: cardQuery.query(_class, { _id }, async (result) => {
- object = result[0]
- })
+ object = result[0]
+ })
- $: object?.state && stateQuery.query(task.class.State, { _id: object.state }, async (result) => {
+ $: object?.state &&
+ stateQuery.query(task.class.State, { _id: object.state }, async (result) => {
state = result[0]
})
@@ -62,7 +63,7 @@
}
})
- function change(field: string, value: any) {
+ function change (field: string, value: any) {
if (object) {
updateCard(client, object, field, value)
}
diff --git a/plugins/board-resources/src/components/KanbanCard.svelte b/plugins/board-resources/src/components/KanbanCard.svelte
index 3614074bee..8e60e9529d 100644
--- a/plugins/board-resources/src/components/KanbanCard.svelte
+++ b/plugins/board-resources/src/components/KanbanCard.svelte
@@ -38,7 +38,7 @@
}
function canDropAttachment (e: DragEvent): boolean {
- return !!e.dataTransfer?.items && e.dataTransfer?.items.length > 0;
+ return !!e.dataTransfer?.items && e.dataTransfer?.items.length > 0
}
diff --git a/plugins/board-resources/src/components/KanbanPanelEmpty.svelte b/plugins/board-resources/src/components/KanbanPanelEmpty.svelte
index cd23167c78..51e289c49b 100644
--- a/plugins/board-resources/src/components/KanbanPanelEmpty.svelte
+++ b/plugins/board-resources/src/components/KanbanPanelEmpty.svelte
@@ -1,67 +1,68 @@
-
- {#if isAdding}
-
-
-
- {:else}
-
diff --git a/plugins/board-resources/src/components/KanbanView.svelte b/plugins/board-resources/src/components/KanbanView.svelte
index a056ef6513..216632ea0c 100644
--- a/plugins/board-resources/src/components/KanbanView.svelte
+++ b/plugins/board-resources/src/components/KanbanView.svelte
@@ -23,7 +23,7 @@
import KanbanCard from './KanbanCard.svelte'
import KanbanPanelEmpty from './KanbanPanelEmpty.svelte'
import AddCard from './add-card/AddCard.svelte'
-
+
export let _class: Ref>
export let space: Ref
export let search: string
@@ -59,11 +59,7 @@
const client = getClient()
async function addItem (title: any) {
- const lastOne = await client.findOne(
- task.class.State,
- { space },
- { sort: { rank: SortingOrder.Descending } }
- )
+ const lastOne = await client.findOne(task.class.State, { space }, { sort: { rank: SortingOrder.Descending } })
await client.createDoc(task.class.State, space, {
title,
color: 9,
@@ -73,17 +69,29 @@
/* eslint-disable no-undef */
-
-
+
+
-
- { addItem(e.detail) }} />
+
+ {
+ addItem(e.detail)
+ }}
+ />
-
+
diff --git a/plugins/board-resources/src/components/add-card/AddCard.svelte b/plugins/board-resources/src/components/add-card/AddCard.svelte
index 509650c808..5fa9ecc7e5 100644
--- a/plugins/board-resources/src/components/add-card/AddCard.svelte
+++ b/plugins/board-resources/src/components/add-card/AddCard.svelte
@@ -28,7 +28,7 @@
let anchorRef: HTMLDivElement
const client = getClient()
- async function addCard(title: string) {
+ async function addCard (title: string) {
const newCardId = generateId() as Ref
const sequence = await client.findOne(task.class.Sequence, { attachedTo: board.class.Card })
@@ -58,7 +58,7 @@
return client.addCollection(board.class.Card, space, space, board.class.Board, 'cards', value, newCardId)
}
- async function addCards(title: string, checkNewLine: boolean = false) {
+ async function addCards (title: string, checkNewLine: boolean = false) {
if (!checkNewLine) {
return addCard(title.replace('\n', ' '))
}
diff --git a/plugins/board-resources/src/components/add-card/AddCardEditor.svelte b/plugins/board-resources/src/components/add-card/AddCardEditor.svelte
index 9e4a8616b8..8025065ee0 100644
--- a/plugins/board-resources/src/components/add-card/AddCardEditor.svelte
+++ b/plugins/board-resources/src/components/add-card/AddCardEditor.svelte
@@ -1,4 +1,4 @@
-
-
+
\ No newline at end of file
+
diff --git a/plugins/board-resources/src/components/add-card/AddMultipleCardsPopup.svelte b/plugins/board-resources/src/components/add-card/AddMultipleCardsPopup.svelte
index f72a9aeeb2..a3da726ab2 100644
--- a/plugins/board-resources/src/components/add-card/AddMultipleCardsPopup.svelte
+++ b/plugins/board-resources/src/components/add-card/AddMultipleCardsPopup.svelte
@@ -41,12 +41,12 @@
.close-icon {
position: absolute;
- top: .75rem;
- right: .75rem;
+ top: 0.75rem;
+ right: 0.75rem;
}
.header {
- padding-bottom: .5rem;
+ padding-bottom: 0.5rem;
border-bottom: 1px solid var(--divider-color);
}
diff --git a/plugins/board-resources/src/components/editor/CardAttachments.svelte b/plugins/board-resources/src/components/editor/CardAttachments.svelte
index e23d6edc6a..f7cdade4b7 100644
--- a/plugins/board-resources/src/components/editor/CardAttachments.svelte
+++ b/plugins/board-resources/src/components/editor/CardAttachments.svelte
@@ -28,12 +28,11 @@
let inputFile: HTMLInputElement
- async function fetch() {
+ async function fetch () {
attachments = await client.findAll(attachment.class.Attachment, { space: value.space, attachedTo: value._id })
}
$: value?.attachments && value.attachments > 0 && fetch()
-
{#if value !== undefined && value.attachments !== undefined && value.attachments > 0}
@@ -55,7 +54,7 @@
diff --git a/plugins/board-resources/src/components/editor/CardDetails.svelte b/plugins/board-resources/src/components/editor/CardDetails.svelte
index a4ab5b47ee..3e07f212ff 100644
--- a/plugins/board-resources/src/components/editor/CardDetails.svelte
+++ b/plugins/board-resources/src/components/editor/CardDetails.svelte
@@ -14,7 +14,7 @@
// limitations under the License.
-->
{#if value}
@@ -123,7 +126,7 @@
{#key value.date}
-
+
{/key}
{/if}
diff --git a/plugins/board-resources/src/components/popups/CardLabelsPicker.svelte b/plugins/board-resources/src/components/popups/CardLabelsPicker.svelte
index 68fbb65fc2..760df0eec9 100644
--- a/plugins/board-resources/src/components/popups/CardLabelsPicker.svelte
+++ b/plugins/board-resources/src/components/popups/CardLabelsPicker.svelte
@@ -17,7 +17,7 @@
let filteredLabels: CardLabel[] = []
let hovered: Ref | undefined = undefined
- function applySearch() {
+ function applySearch () {
if (!search || search.trim().length <= 0) {
filteredLabels = boardCardLabels
return
@@ -27,14 +27,14 @@
filteredLabels = boardCardLabels.filter((l) => l.title?.toUpperCase().includes(text) ?? false)
}
- async function fetchBoardLabels() {
+ async function fetchBoardLabels () {
if (object.space) {
boardCardLabels = await getBoardLabels(client, object.space)
applySearch()
}
}
- function toggle(label: CardLabel) {
+ function toggle (label: CardLabel) {
if (!object) {
return
}
diff --git a/plugins/board-resources/src/components/popups/DateRangePicker.svelte b/plugins/board-resources/src/components/popups/DateRangePicker.svelte
index ce43d7683d..d47793a2b4 100644
--- a/plugins/board-resources/src/components/popups/DateRangePicker.svelte
+++ b/plugins/board-resources/src/components/popups/DateRangePicker.svelte
@@ -4,7 +4,7 @@
import { Card, CardDate } from '@anticrm/board'
import calendar from '@anticrm/calendar'
import board from '../../plugin'
- import { getClient } from '@anticrm/presentation';
+ import { getClient } from '@anticrm/presentation'
export let object: Card
@@ -24,36 +24,46 @@
const date: CardDate = {}
if (startDate !== undefined) date.startDate = startDate
if (dueDate !== undefined) date.dueDate = dueDate
- client.update(object, {date})
+ client.update(object, { date })
}