diff --git a/src/components/IssueDetails.vue b/src/components/IssueDetails.vue
index 13a3536..5f5025c 100644
--- a/src/components/IssueDetails.vue
+++ b/src/components/IssueDetails.vue
@@ -129,7 +129,7 @@ defineExpose({
Priority:
-
+
Reporter:
diff --git a/src/components/PriorityMenu.vue b/src/components/PriorityMenu.vue
index 7d73eb2..ac28e0c 100644
--- a/src/components/PriorityMenu.vue
+++ b/src/components/PriorityMenu.vue
@@ -12,31 +12,32 @@ enum Icons {
interface Props {
value?: number
+ compact?: boolean
}
-const props = defineProps()
+const props = withDefaults(defineProps(), { compact: true })
const emit = defineEmits<{ changed: [value: Issue['priority']] }>()
const priorityList = ref([
- { icon: Icons.highest, value: 4 },
- { icon: Icons.high, value: 3 },
- { icon: Icons.eq, value: 2 },
- { icon: Icons.low, value: 1 },
- { icon: Icons.lowest, value: 0 },
+ { icon: Icons.highest, value: 4, label: 'Highest' },
+ { icon: Icons.high, value: 3, label: 'High' },
+ { icon: Icons.eq, value: 2, label: 'Normal' },
+ { icon: Icons.low, value: 1, label: 'Low' },
+ { icon: Icons.lowest, value: 0, label: 'Lowest' },
])
-const currentIcon = computed(() => priorityList.value.find((el) => el.value === props.value)?.icon ?? Icons.eq)
-
const availablePriorities = computed(() => priorityList.value.filter((el) => el.value !== props.value))
+const currentColor = computed(() => priorityColor(props.value))
+const currentIcon = computed(() => priorityList.value.find((el) => el.value === props.value)?.icon ?? Icons.eq)
+const currentLabel = computed(() => priorityList.value.find((el) => el.value === props.value)?.label ?? '')
+
function priorityColor(value?: number) {
if (value === 3 || value === 4) return 'error'
if (value === 2) return 'success'
return 'primary'
}
-const currentColor = computed(() => priorityColor(props.value))
-
const select = (value: unknown) => {
if (Array.isArray(value)) {
emit('changed', value[0])
@@ -48,13 +49,28 @@ const select = (value: unknown) => {
-
+
+
+
+
+
+ {{ currentLabel }}
+
+
-
-