mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
feat: Add issue status in linear issue search item (#9598)
This commit is contained in:
@@ -101,6 +101,8 @@ const shouldShowEmptyState = computed(() => {
|
|||||||
:key="item.id"
|
:key="item.id"
|
||||||
:is-active="isFilterActive(item.id)"
|
:is-active="isFilterActive(item.id)"
|
||||||
:button-text="item.name"
|
:button-text="item.name"
|
||||||
|
:icon="item.icon"
|
||||||
|
:icon-color="item.iconColor"
|
||||||
@click="$emit('click', item)"
|
@click="$emit('click', item)"
|
||||||
/>
|
/>
|
||||||
</slot>
|
</slot>
|
||||||
|
|||||||
@@ -8,6 +8,14 @@ defineProps({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
icon: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
|
iconColor: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -20,6 +28,12 @@ defineProps({
|
|||||||
@focus="$emit('focus')"
|
@focus="$emit('focus')"
|
||||||
>
|
>
|
||||||
<div class="inline-flex items-center gap-3 overflow-hidden">
|
<div class="inline-flex items-center gap-3 overflow-hidden">
|
||||||
|
<fluent-icon
|
||||||
|
v-if="icon"
|
||||||
|
:icon="icon"
|
||||||
|
size="18"
|
||||||
|
:style="{ color: iconColor }"
|
||||||
|
/>
|
||||||
<span
|
<span
|
||||||
class="text-sm font-medium truncate text-slate-900 dark:text-slate-50"
|
class="text-sm font-medium truncate text-slate-900 dark:text-slate-50"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -62,6 +62,8 @@ const onSearch = async value => {
|
|||||||
issues.value = response.data.map(issue => ({
|
issues.value = response.data.map(issue => ({
|
||||||
id: issue.id,
|
id: issue.id,
|
||||||
name: `${issue.identifier} ${issue.title}`,
|
name: `${issue.identifier} ${issue.title}`,
|
||||||
|
icon: 'status',
|
||||||
|
iconColor: issue.state.color,
|
||||||
}));
|
}));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorMessage = parseLinearAPIErrorResponse(
|
const errorMessage = parseLinearAPIErrorResponse(
|
||||||
|
|||||||
@@ -54,6 +54,10 @@ module Linear::Queries
|
|||||||
title
|
title
|
||||||
description
|
description
|
||||||
identifier
|
identifier
|
||||||
|
state {
|
||||||
|
name
|
||||||
|
color
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user