aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/Service.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/Service.js')
-rw-r--r--src/models/Service.js7
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