aboutsummaryrefslogtreecommitdiffstats
path: root/src/models
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-02 13:57:24 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-02 13:57:24 +0200
commit53c16e91b58d0abe3cde88acd05fddbdfc3c683c (patch)
tree6b3394aabdedc070f6b9e179457627b435b69ad9 /src/models
parentFix Ferdi Lock not corrently locking (diff)
parentfix(Spell check): Fix spell checker to initialize without loaded dictionary (diff)
downloadferdium-app-53c16e91b58d0abe3cde88acd05fddbdfc3c683c.tar.gz
ferdium-app-53c16e91b58d0abe3cde88acd05fddbdfc3c683c.tar.zst
ferdium-app-53c16e91b58d0abe3cde88acd05fddbdfc3c683c.zip
Merge branch 'release/5.4.0' of https://github.com/meetfranz/franz into franz-5.4.0
Diffstat (limited to 'src/models')
-rw-r--r--src/models/Recipe.js4
-rw-r--r--src/models/Service.js3
2 files changed, 7 insertions, 0 deletions
diff --git a/src/models/Recipe.js b/src/models/Recipe.js
index 3f7299e34..6655f8310 100644
--- a/src/models/Recipe.js
+++ b/src/models/Recipe.js
@@ -36,6 +36,8 @@ export default class Recipe {
36 36
37 message = ''; 37 message = '';
38 38
39 disablewebsecurity = false;
40
39 constructor(data) { 41 constructor(data) {
40 if (!data) { 42 if (!data) {
41 throw Error('Recipe config not valid'); 43 throw Error('Recipe config not valid');
@@ -74,6 +76,8 @@ export default class Recipe {
74 this.urlInputPrefix = data.config.urlInputPrefix || this.urlInputPrefix; 76 this.urlInputPrefix = data.config.urlInputPrefix || this.urlInputPrefix;
75 this.urlInputSuffix = data.config.urlInputSuffix || this.urlInputSuffix; 77 this.urlInputSuffix = data.config.urlInputSuffix || this.urlInputSuffix;
76 78
79 this.disablewebsecurity = data.config.disablewebsecurity || this.disablewebsecurity;
80
77 this.message = data.config.message || this.message; 81 this.message = data.config.message || this.message;
78 } 82 }
79 83
diff --git a/src/models/Service.js b/src/models/Service.js
index b48233237..3ab6e2603 100644
--- a/src/models/Service.js
+++ b/src/models/Service.js
@@ -134,6 +134,9 @@ export default class Service {
134 id: this.id, 134 id: this.id,
135 spellcheckerLanguage: this.spellcheckerLanguage, 135 spellcheckerLanguage: this.spellcheckerLanguage,
136 isDarkModeEnabled: this.isDarkModeEnabled, 136 isDarkModeEnabled: this.isDarkModeEnabled,
137 team: this.team,
138 url: this.url,
139 hasCustomIcon: this.hasCustomIcon,
137 }; 140 };
138 } 141 }
139 142