Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement mobile list option #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
17 changes: 16 additions & 1 deletion frontend/components/SettingsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@
</v-list-item-action>
</v-list-item>

<v-list-item>
<v-list-item-content>
<v-list-item-title>
Mobile Tasklist
</v-list-item-title>
<v-list-item-subtitle>
multiple tasks per line
</v-list-item-subtitle>
</v-list-item-content>
<v-list-item-action>
<v-checkbox v-model="settings.mobilelist" />
</v-list-item-action>
</v-list-item>

<v-list-item>
<v-list-item-content>
<v-list-item-title>
Expand Down Expand Up @@ -106,7 +120,8 @@ export default defineComponent({
const settings = reactive({
dark: store.state.settings.dark,
autoRefresh: store.state.settings.autoRefresh,
autoSync: store.state.settings.autoSync
autoSync: store.state.settings.autoSync,
mobilelist: store.state.settings.mobilelist
});

const reset = () => {
Expand Down
2 changes: 2 additions & 0 deletions frontend/components/TaskList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
v-model="selected"
class="elevation-1"
style="width: 100%"
:mobile-breakpoint="store.state.settings.mobilelist ? undefined : 0"
>
<template v-slot:top>
<v-row class="px-4">
Expand Down Expand Up @@ -390,6 +391,7 @@ export default defineComponent({
};

return {
store,
linkify,
refresh,
headers,
Expand Down
3 changes: 2 additions & 1 deletion frontend/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export const state = () => ({
settings: {
dark: false,
autoRefresh: '5', // in minutes
autoSync: '0' // in minutes
autoSync: '0', // in minutes
mobilelist: true
}
});

Expand Down