vikunja-frontend/src/models/userSettings.ts

21 lines
572 B
TypeScript
Raw Normal View History

2022-08-04 20:57:43 +02:00
import AbstractModel from './abstractModel'
2022-08-04 20:57:43 +02:00
import type {IUserSettings} from '@/modelTypes/IUserSettings'
import type {IList} from '@/modelTypes/IList'
2022-07-21 00:42:36 +02:00
export default class UserSettingsModel extends AbstractModel implements IUserSettings {
name = ''
emailRemindersEnabled = true
discoverableByName = false
discoverableByEmail = false
overdueTasksRemindersEnabled = true
defaultListId: undefined | IList['id'] = undefined
2022-08-04 20:57:43 +02:00
weekStart: IUserSettings['weekStart'] = 0
timezone = ''
2022-06-23 03:22:21 +02:00
constructor(data: Partial<IUserSettings>) {
super()
this.assignData(data)
}
}