diff options
author | Ricardo Cino <ricardo@cino.io> | 2022-06-22 22:10:39 +0200 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-06-23 06:55:42 +0530 |
commit | 5dcc1aff28290fe3b7e2ed5cbe99d3034c0b6f34 (patch) | |
tree | 81f643c38eecdfa49476e0b9dac3aed9107ecf99 /src/models/Recipe.ts | |
parent | Upgrade 'electron' to '19.0.6' (diff) | |
download | ferdium-app-5dcc1aff28290fe3b7e2ed5cbe99d3034c0b6f34.tar.gz ferdium-app-5dcc1aff28290fe3b7e2ed5cbe99d3034c0b6f34.tar.zst ferdium-app-5dcc1aff28290fe3b7e2ed5cbe99d3034c0b6f34.zip |
chore: recipes/request stores js => ts
Diffstat (limited to 'src/models/Recipe.ts')
-rw-r--r-- | src/models/Recipe.ts | 5 |
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, |