From 18c1d8f1a3723f483373ba84f2f4508d129216fb Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 16 Oct 2021 15:49:34 -0500 Subject: [PATCH] Add: user settings for mobile sort & filter --- client/nuxt.config.js | 2 +- server/objects/User.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/nuxt.config.js b/client/nuxt.config.js index 3cad9e2c..891034ee 100644 --- a/client/nuxt.config.js +++ b/client/nuxt.config.js @@ -35,7 +35,7 @@ module.exports = { ], link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, - { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Fira+Mono&family=Ubuntu+Mono&family=Gentium+Book+Basic&&family=Source+Sans+Pro:wght@300;400;600' }, + { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Ubuntu+Mono&family=Gentium+Book+Basic&&family=Source+Sans+Pro:wght@300;400;600' }, { rel: 'stylesheet', href: 'https://fonts.googleapis.com/icon?family=Material+Icons' } ] }, diff --git a/server/objects/User.js b/server/objects/User.js index 23e2b9d3..7cb81442 100644 --- a/server/objects/User.js +++ b/server/objects/User.js @@ -43,6 +43,9 @@ class User { getDefaultUserSettings() { return { + mobileOrderBy: 'recent', + mobileOrderDesc: true, + mobileFilterBy: 'all', orderBy: 'book.title', orderDesc: false, filterBy: 'all',