Tracker: Fix IssuesList selection (#1578)

This commit is contained in:
Artyom Grigorovich 2022-04-28 19:01:11 +07:00 committed by GitHub
parent d2f2a18376
commit 155fca2649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 11 deletions

View File

@ -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
}

View File

@ -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>

View File

@ -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 {