Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracker: Fix IssuesList selection #1578

Merged
merged 3 commits into from
Apr 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions plugins/tracker-resources/src/components/CreateIssue.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -53,17 +53,17 @@

$: _space = space
$: _parent = parent
$: updateIssueStatusId(space, issueStatus)
$: updateIssueStatusId(space, status)
$: statusesQuery.query(tracker.class.IssueStatus, { attachedTo: space }, (statuses) => {
issueStatuses = statuses
}, {
lookup: { category: tracker.class.IssueStatusCategory },
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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ import PriorityPresenter from './PriorityPresenter.svelte'
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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,7 @@
}

&.mListGridSelected {
background-color: var(--theme-table-bg-hover);
}

&:hover {
background-color: var(--theme-table-bg-hover);
background-color: var(--menu-bg-select);
}

.eListGridCheckBox {
Expand Down