aboutsummaryrefslogtreecommitdiffstats
path: root/src/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/models')
-rw-r--r--src/models/Recipe.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/models/Recipe.ts b/src/models/Recipe.ts
index 4463abe95..be889d22c 100644
--- a/src/models/Recipe.ts
+++ b/src/models/Recipe.ts
@@ -23,6 +23,7 @@ interface IRecipe {
23 disablewebsecurity?: boolean; 23 disablewebsecurity?: boolean;
24 autoHibernate?: boolean; 24 autoHibernate?: boolean;
25 partition?: string; 25 partition?: string;
26 local?: boolean;
26 message?: string; 27 message?: string;
27 allowFavoritesDelineationInUnreadCount?: boolean; 28 allowFavoritesDelineationInUnreadCount?: boolean;
28 }; 29 };
@@ -71,6 +72,9 @@ export default class Recipe {
71 72
72 partition: string = ''; 73 partition: string = '';
73 74
75 // TODO: Is this being used?
76 local: boolean = false;
77
74 // TODO: Need to reconcile which of these are optional/mandatory 78 // TODO: Need to reconcile which of these are optional/mandatory
75 constructor(data: IRecipe) { 79 constructor(data: IRecipe) {
76 if (!data) { 80 if (!data) {
@@ -134,6 +138,7 @@ export default class Recipe {
134 data.config.autoHibernate, 138 data.config.autoHibernate,
135 this.autoHibernate, 139 this.autoHibernate,
136 ); 140 );
141 this.local = ifUndefinedBoolean(data.config.local, this.local);
137 this.message = ifUndefinedString(data.config.message, this.message); 142 this.message = ifUndefinedString(data.config.message, this.message);
138 this.allowFavoritesDelineationInUnreadCount = ifUndefinedBoolean( 143 this.allowFavoritesDelineationInUnreadCount = ifUndefinedBoolean(
139 data.config.allowFavoritesDelineationInUnreadCount, 144 data.config.allowFavoritesDelineationInUnreadCount,