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 space: Ref<Team>
export let parent: Ref<Issue> | undefined 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 priority: IssuePriority = IssuePriority.NoPriority
export let assignee: Ref<Employee> | null = null export let assignee: Ref<Employee> | null = null
@ -53,7 +53,7 @@
$: _space = space $: _space = space
$: _parent = parent $: _parent = parent
$: updateIssueStatusId(space, issueStatus) $: updateIssueStatusId(space, status)
$: statusesQuery.query(tracker.class.IssueStatus, { attachedTo: space }, (statuses) => { $: statusesQuery.query(tracker.class.IssueStatus, { attachedTo: space }, (statuses) => {
issueStatuses = statuses issueStatuses = statuses
}, { }, {
@ -61,9 +61,9 @@
sort: { rank: SortingOrder.Ascending } sort: { rank: SortingOrder.Ascending }
}) })
async function updateIssueStatusId (teamId: Ref<Team>, status?: Ref<IssueStatus>) { async function updateIssueStatusId (teamId: Ref<Team>, issueStatusId?: Ref<IssueStatus>) {
if (status !== undefined) { if (issueStatusId !== undefined) {
object.status = status object.status = issueStatusId
return return
} }

View File

@ -135,7 +135,7 @@
icon={IconAdd} icon={IconAdd}
kind={'transparent'} kind={'transparent'}
on:click={(evt) => { on:click={(evt) => {
showPopup(CreateIssue, { space: currentSpace, issueStatus: state._id }, eventToHTMLElement(evt)) showPopup(CreateIssue, { space: currentSpace, status: state._id }, eventToHTMLElement(evt))
}} }}
/> />
</Tooltip> </Tooltip>

View File

@ -312,11 +312,7 @@
} }
&.mListGridSelected { &.mListGridSelected {
background-color: var(--theme-table-bg-hover); background-color: var(--menu-bg-select);
}
&:hover {
background-color: var(--theme-table-bg-hover);
} }
.eListGridCheckBox { .eListGridCheckBox {