mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 12:25:17 +00:00
Fix issue icon (#2532)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
d3b4482333
commit
ec9e681803
@ -39,17 +39,20 @@
|
||||
|
||||
const categoriesQuery = createQuery()
|
||||
|
||||
$: if (issueStatuses === undefined) {
|
||||
categoriesQuery.query(
|
||||
tracker.class.IssueStatus,
|
||||
{ category: tracker.issueStatusCategory.Started },
|
||||
(res) => (statuses = res),
|
||||
{ sort: { rank: SortingOrder.Ascending } }
|
||||
)
|
||||
} else {
|
||||
const _s = [...issueStatuses.filter((it) => it.category === tracker.issueStatusCategory.Started)]
|
||||
_s.sort((a, b) => a.rank.localeCompare(b.rank))
|
||||
categoriesQuery.unsubscribe()
|
||||
$: if (value.category === tracker.issueStatusCategory.Started) {
|
||||
if (issueStatuses === undefined) {
|
||||
categoriesQuery.query(
|
||||
tracker.class.IssueStatus,
|
||||
{ category: tracker.issueStatusCategory.Started },
|
||||
(res) => (statuses = res),
|
||||
{ sort: { rank: SortingOrder.Ascending } }
|
||||
)
|
||||
} else {
|
||||
const _s = [...issueStatuses.filter((it) => it.category === tracker.issueStatusCategory.Started)]
|
||||
_s.sort((a, b) => a.rank.localeCompare(b.rank))
|
||||
statuses = _s
|
||||
categoriesQuery.unsubscribe()
|
||||
}
|
||||
}
|
||||
|
||||
async function updateCategory (status: WithLookup<IssueStatus>, statuses: IssueStatus[]) {
|
||||
|
Loading…
Reference in New Issue
Block a user