mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-09 09:20:54 +00: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 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user