diff --git a/src/components/IssueDetails.vue b/src/components/IssueDetails.vue index 4efebf7..13a3536 100644 --- a/src/components/IssueDetails.vue +++ b/src/components/IssueDetails.vue @@ -14,6 +14,7 @@ import HistoryList from '@/components/HistoryList.vue' import SplitHandle from '@/components/SplitHandle.vue' import { useSplitPane } from '@/composables/useSplitPane.ts' import FileUpload from '@/components/FileUpload.vue' +import PriorityMenu from '@/components/PriorityMenu.vue' interface Props { ckey: string @@ -22,6 +23,7 @@ interface Props { const emit = defineEmits<{ statusChanged: [issue: Issue] assigneeChanged: [issue: Issue] + priorityChanged: [issue: Issue] titleChanged: [issue: Issue] dueDateChanged: [issue: Issue] }>() @@ -85,6 +87,16 @@ const onStatusChanged = async (status: Issue['status']) => { } } +const onPriorityChanged = async (priority: Issue['priority']) => { + if (!issue.value) return + + const updated = await issueStore.update(issue.value.id, { priority }) + if (updated) { + issue.value = updated + emit('priorityChanged', updated) + } +} + const onAssigneeChanged = async (assignee: string) => { if (!issue.value) return @@ -116,6 +128,9 @@ defineExpose({
Status:
+
Priority:
+ +
Reporter:
diff --git a/src/components/StatusMenu.vue b/src/components/StatusMenu.vue index 43cfcf5..81a128f 100644 --- a/src/components/StatusMenu.vue +++ b/src/components/StatusMenu.vue @@ -33,6 +33,7 @@ const select = (value: unknown) => {