vikunja-frontend/src/models/userSettings.ts

27 lines
631 B
TypeScript
Raw Normal View History

import AbstractModel from './abstractModel'
2022-06-23 03:22:21 +02:00
import type ListModel from './list'
export default class UserSettingsModel extends AbstractModel {
2022-06-23 03:22:21 +02:00
name: string
emailRemindersEnabled: boolean
discoverableByName: boolean
discoverableByEmail: boolean
overdueTasksRemindersEnabled: boolean
defaultListId: undefined | ListModel['id']
weekStart: 0 | 1 | 2 | 3 | 4 | 5 | 6
timezone: string
defaults() {
return {
name: '',
emailRemindersEnabled: true,
discoverableByName: false,
discoverableByEmail: false,
overdueTasksRemindersEnabled: true,
defaultListId: undefined,
weekStart: 0,
timezone: '',
}
}
}