Done statuses, replaced circles with a tick and a cross (#2227)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2022-07-07 20:29:08 +07:00
committed by GitHub
parent ef1673128e
commit 0a3f5c26d3
11 changed files with 95 additions and 67 deletions
@@ -22,6 +22,8 @@
import { TableBrowser } from '@anticrm/view-resources'
import task from '../plugin'
import StatesBar from './state/StatesBar.svelte'
import Won from './icons/Won.svelte'
import Lost from './icons/Lost.svelte'
export let _class: Ref<Class<Task>>
export let space: Ref<SpaceWithStates>
@@ -61,7 +63,8 @@
return {
id: s._id,
label: s.title,
color: s._class === task.class.WonState ? 'var(--done-color)' : 'var(--error-color)'
icon: s._class === task.class.WonState ? Won : Lost,
color: s._class === task.class.WonState ? 'var(--won-color)' : 'var(--lost-color)'
}
})
itemsDS.unshift({ id: 'NoDoneState', labelIntl: task.string.NoDoneState })