Add logic for saving session preferences (#17)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
2020-10-20 10:12:25 -05:00
parent c86b82bd0c
commit 78e3082139
3 changed files with 22 additions and 1 deletions

View File

@@ -13,6 +13,10 @@ class User extends AuthUser {
static get schema() {
return {...super.schema, ...{
// other schema fields here
preferences: {
dark_mode: { type: Boolean, default: false },
default_page: String,
},
}}
}