Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

feat: update comment list sorter #821

Merged
merged 3 commits into from
Jan 16, 2023
Merged
Changes from 2 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
8 changes: 6 additions & 2 deletions src/modules/contents/comments/CommentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ const SortFilterItems: {
}[] = [
{
label: "默认",
value: undefined,
},
{
label: "最后回复时间",
value: "LAST_REPLY_TIME",
},
{
Expand Down Expand Up @@ -283,7 +287,7 @@ function handleClearKeyword() {
const hasFilters = computed(() => {
return (
selectedApprovedFilterItem.value.value !== undefined ||
selectedSortFilterItem.value.value !== "LAST_REPLY_TIME" ||
selectedSortFilterItem.value.value !== undefined ||
selectedUser.value ||
keyword.value
);
Expand Down Expand Up @@ -358,7 +362,7 @@ function handleClearFilters() {
</FilterTag>

<FilterTag
v-if="selectedSortFilterItem.value != 'LAST_REPLY_TIME'"
v-if="selectedSortFilterItem.value != undefined"
@close="handleSortFilterItemChange(SortFilterItems[0])"
>
排序:{{ selectedSortFilterItem.label }}
Expand Down