From ff0008d3462a2e97f7f575aa7d6e3b7ef2d1d5cc Mon Sep 17 00:00:00 2001 From: Vadim Date: Wed, 21 Oct 2026 13:55:01 +0300 Subject: [PATCH] list view options --- src/components/IssuesListElement.vue | 2 +- src/components/NavigationMenu.vue | 10 +++++----- src/composables/useIssueListOptions.ts | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/IssuesListElement.vue b/src/components/IssuesListElement.vue index 8738aca..a51d83c 100644 --- a/src/components/IssuesListElement.vue +++ b/src/components/IssuesListElement.vue @@ -83,7 +83,7 @@ const onAssigneeChanged = async (assignee: string) => { :model-value="selected" @update:model-value="emit('toggleSelect', issue.id)" /> - + diff --git a/src/components/NavigationMenu.vue b/src/components/NavigationMenu.vue index 79bc376..bd766a0 100644 --- a/src/components/NavigationMenu.vue +++ b/src/components/NavigationMenu.vue @@ -23,11 +23,11 @@ const menu = ref([ value: 3, props: { prependIcon: 'mdi-calendar', to: '/calendar', requiresAuth: true }, }, - { - title: 'Games', - value: 4, - props: { prependIcon: 'mdi-view-dashboard', to: '/games', requiresAuth: false }, - }, + // { + // title: 'Games', + // value: 4, + // props: { prependIcon: 'mdi-view-dashboard', to: '/games', requiresAuth: false }, + // }, ]) diff --git a/src/composables/useIssueListOptions.ts b/src/composables/useIssueListOptions.ts index c4f98f6..70cb33c 100644 --- a/src/composables/useIssueListOptions.ts +++ b/src/composables/useIssueListOptions.ts @@ -1,6 +1,7 @@ import { createGlobalState, useLocalStorage } from '@vueuse/core' export const ISSUE_LIST_FIELDS = [ + { title: 'Type', alias: 'type' }, { title: 'Title', alias: 'title' }, { title: 'Content', alias: 'content' }, { title: 'Status', alias: 'status' }, @@ -14,7 +15,7 @@ export type IssueListField = (typeof ISSUE_LIST_FIELDS)[number]['alias'] export const useIssueListOptions = createGlobalState(() => useLocalStorage>( 'issue-list:visible-fields', - { title: true, content: true, status: true, priority: true, assignee: true }, + { title: true, content: true, status: true, priority: true, assignee: true, type: true }, // Fields added later stay visible for users who already have saved options { mergeDefaults: true }, ),