diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2021-09-24 07:39:41 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-09-24 07:48:24 +0530 |
commit | 2e96a61955e525bf6269e41342bf3ffce05805a6 (patch) | |
tree | b45118a2000d751b0d22ff08d12385b96d195145 /src/models/Service.js | |
parent | Update submodules, browserslist data updates and linter fixes [skip ci] (diff) | |
download | ferdium-app-2e96a61955e525bf6269e41342bf3ffce05805a6.tar.gz ferdium-app-2e96a61955e525bf6269e41342bf3ffce05805a6.tar.zst ferdium-app-2e96a61955e525bf6269e41342bf3ffce05805a6.zip |
Allow services to delineate favorites vs non-favorites in unread counts (#1979)
implements getferdi/recipes#721 (eg: office365-owa)
Diffstat (limited to 'src/models/Service.js')
-rw-r--r-- | src/models/Service.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/models/Service.js b/src/models/Service.js index cc001f98d..75dfde027 100644 --- a/src/models/Service.js +++ b/src/models/Service.js | |||
@@ -83,6 +83,8 @@ export default class Service { | |||
83 | 83 | ||
84 | @observable isHibernationRequested = false; | 84 | @observable isHibernationRequested = false; |
85 | 85 | ||
86 | @observable onlyShowFavoritesInUnreadCount = false; | ||
87 | |||
86 | @observable lastUsed = Date.now(); // timestamp | 88 | @observable lastUsed = Date.now(); // timestamp |
87 | 89 | ||
88 | @observable lastHibernated = null; // timestamp | 90 | @observable lastHibernated = null; // timestamp |
@@ -144,6 +146,10 @@ export default class Service { | |||
144 | data.hasCustomIcon, | 146 | data.hasCustomIcon, |
145 | this.hasCustomUploadedIcon, | 147 | this.hasCustomUploadedIcon, |
146 | ); | 148 | ); |
149 | this.onlyShowFavoritesInUnreadCount = ifUndefinedBoolean( | ||
150 | data.onlyShowFavoritesInUnreadCount, | ||
151 | this.onlyShowFavoritesInUnreadCount, | ||
152 | ); | ||
147 | this.proxy = ifUndefinedString(data.proxy, this.proxy); | 153 | this.proxy = ifUndefinedString(data.proxy, this.proxy); |
148 | this.spellcheckerLanguage = ifUndefinedString( | 154 | this.spellcheckerLanguage = ifUndefinedString( |
149 | data.spellcheckerLanguage, | 155 | data.spellcheckerLanguage, |
@@ -191,6 +197,7 @@ export default class Service { | |||
191 | team: this.team, | 197 | team: this.team, |
192 | url: this.url, | 198 | url: this.url, |
193 | hasCustomIcon: this.hasCustomIcon, | 199 | hasCustomIcon: this.hasCustomIcon, |
200 | onlyShowFavoritesInUnreadCount: this.onlyShowFavoritesInUnreadCount, | ||
194 | }; | 201 | }; |
195 | } | 202 | } |
196 | 203 | ||