mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-25 19:15:03 +02:00
Support for markup type (#936)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
import { getClient } from '@anticrm/presentation'
|
||||
import type { Issue } from '@anticrm/task'
|
||||
import task from '@anticrm/task'
|
||||
import { StyledTextBox } from '@anticrm/text-editor'
|
||||
import { EditBox, Grid } from '@anticrm/ui'
|
||||
import { createEventDispatcher, onMount } from 'svelte'
|
||||
import plugin from '../plugin'
|
||||
@@ -54,13 +55,24 @@
|
||||
focus
|
||||
on:change={() => change('name', object.name)}
|
||||
/>
|
||||
<EditBox
|
||||
label={plugin.string.TaskDescription}
|
||||
bind:value={object.description}
|
||||
icon={task.icon.Task}
|
||||
placeholder={plugin.string.TaskDescriptionPlaceholder}
|
||||
maxWidth="39rem"
|
||||
on:change={() => change('description', object.description)}
|
||||
/>
|
||||
|
||||
<div class='description'>
|
||||
<StyledTextBox
|
||||
bind:content={object.description}
|
||||
placeholder={plugin.string.TaskDescriptionPlaceholder}
|
||||
on:blur={() => change('description', object.description)}
|
||||
/>
|
||||
</div>
|
||||
</Grid>
|
||||
{/if}
|
||||
|
||||
<style lang="scss">
|
||||
.description {
|
||||
display: flex;
|
||||
padding: 1rem;
|
||||
height: 12rem;
|
||||
border-radius: .25rem;
|
||||
background-color: var(--theme-bg-accent-color);
|
||||
border: 1px solid var(--theme-bg-accent-color);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -50,7 +50,6 @@
|
||||
if (item.dueTo !== dueTo) {
|
||||
ops.dueTo = (dueTo?.getTime() ?? null) as unknown as Timestamp
|
||||
}
|
||||
console.log('AHTUNG', ops)
|
||||
|
||||
if (Object.keys(ops).length === 0) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user