mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 13:47:26 +03:00
Tracker: Fix IssuesList selection (#1578)
This commit is contained in:
parent
d2f2a18376
commit
155fca2649
@ -27,7 +27,7 @@
|
||||
|
||||
export let space: Ref<Team>
|
||||
export let parent: Ref<Issue> | undefined
|
||||
export let issueStatus: Ref<IssueStatus> | undefined = undefined
|
||||
export let status: Ref<IssueStatus> | undefined = undefined
|
||||
export let priority: IssuePriority = IssuePriority.NoPriority
|
||||
export let assignee: Ref<Employee> | null = null
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
|
||||
$: _space = space
|
||||
$: _parent = parent
|
||||
$: updateIssueStatusId(space, issueStatus)
|
||||
$: updateIssueStatusId(space, status)
|
||||
$: statusesQuery.query(tracker.class.IssueStatus, { attachedTo: space }, (statuses) => {
|
||||
issueStatuses = statuses
|
||||
}, {
|
||||
@ -61,9 +61,9 @@
|
||||
sort: { rank: SortingOrder.Ascending }
|
||||
})
|
||||
|
||||
async function updateIssueStatusId (teamId: Ref<Team>, status?: Ref<IssueStatus>) {
|
||||
if (status !== undefined) {
|
||||
object.status = status
|
||||
async function updateIssueStatusId (teamId: Ref<Team>, issueStatusId?: Ref<IssueStatus>) {
|
||||
if (issueStatusId !== undefined) {
|
||||
object.status = issueStatusId
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@
|
||||
icon={IconAdd}
|
||||
kind={'transparent'}
|
||||
on:click={(evt) => {
|
||||
showPopup(CreateIssue, { space: currentSpace, issueStatus: state._id }, eventToHTMLElement(evt))
|
||||
showPopup(CreateIssue, { space: currentSpace, status: state._id }, eventToHTMLElement(evt))
|
||||
}}
|
||||
/>
|
||||
</Tooltip>
|
||||
|
@ -312,11 +312,7 @@
|
||||
}
|
||||
|
||||
&.mListGridSelected {
|
||||
background-color: var(--theme-table-bg-hover);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: var(--theme-table-bg-hover);
|
||||
background-color: var(--menu-bg-select);
|
||||
}
|
||||
|
||||
.eListGridCheckBox {
|
||||
|
Loading…
Reference in New Issue
Block a user