list view options
This commit is contained in:
1 parent
81dd976d8f
commit
ff0008d346
3 files changed
+8
-7
No files matched your search
@@ -83,7 +83,7 @@ const onAssigneeChanged = async (assignee: string) => {
|
|||||||
:model-value="selected"
|
:model-value="selected"
|
||||||
@update:model-value="emit('toggleSelect', issue.id)"
|
@update:model-value="emit('toggleSelect', issue.id)"
|
||||||
/>
|
/>
|
||||||
<issue-type :value="issue.type" @changed="onTypeChanged" />
|
<issue-type v-if="visible.type" :value="issue.type" @changed="onTypeChanged" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -23,11 +23,11 @@ const menu = ref([
|
|||||||
value: 3,
|
value: 3,
|
||||||
props: { prependIcon: 'mdi-calendar', to: '/calendar', requiresAuth: true },
|
props: { prependIcon: 'mdi-calendar', to: '/calendar', requiresAuth: true },
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: 'Games',
|
// title: 'Games',
|
||||||
value: 4,
|
// value: 4,
|
||||||
props: { prependIcon: 'mdi-view-dashboard', to: '/games', requiresAuth: false },
|
// props: { prependIcon: 'mdi-view-dashboard', to: '/games', requiresAuth: false },
|
||||||
},
|
// },
|
||||||
])
|
])
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { createGlobalState, useLocalStorage } from '@vueuse/core'
|
import { createGlobalState, useLocalStorage } from '@vueuse/core'
|
||||||
|
|
||||||
export const ISSUE_LIST_FIELDS = [
|
export const ISSUE_LIST_FIELDS = [
|
||||||
|
{ title: 'Type', alias: 'type' },
|
||||||
{ title: 'Title', alias: 'title' },
|
{ title: 'Title', alias: 'title' },
|
||||||
{ title: 'Content', alias: 'content' },
|
{ title: 'Content', alias: 'content' },
|
||||||
{ title: 'Status', alias: 'status' },
|
{ title: 'Status', alias: 'status' },
|
||||||
@@ -14,7 +15,7 @@ export type IssueListField = (typeof ISSUE_LIST_FIELDS)[number]['alias']
|
|||||||
export const useIssueListOptions = createGlobalState(() =>
|
export const useIssueListOptions = createGlobalState(() =>
|
||||||
useLocalStorage<Record<IssueListField, boolean>>(
|
useLocalStorage<Record<IssueListField, boolean>>(
|
||||||
'issue-list:visible-fields',
|
'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
|
// Fields added later stay visible for users who already have saved options
|
||||||
{ mergeDefaults: true },
|
{ mergeDefaults: true },
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in new issue
Block a user