From 86410c4bc7b3dad824586a7116713318287a6d0e Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 27 Sep 2019 21:11:24 +0200 Subject: add disablewebsecurity option --- src/models/Recipe.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/models') diff --git a/src/models/Recipe.js b/src/models/Recipe.js index b0d60e75e..00c0f699f 100644 --- a/src/models/Recipe.js +++ b/src/models/Recipe.js @@ -36,6 +36,8 @@ export default class Recipe { message = ''; + disablewebsecurity = false; + constructor(data) { if (!data) { throw Error('Recipe config not valid'); @@ -74,6 +76,8 @@ export default class Recipe { this.urlInputPrefix = data.config.urlInputPrefix || this.urlInputPrefix; this.urlInputSuffix = data.config.urlInputSuffix || this.urlInputSuffix; + this.disablewebsecurity = data.config.disablewebsecurity || this.disablewebsecurity; + this.message = data.config.message || this.message; } -- cgit v1.2.3-70-g09d2 From 9f4f3e74002d6b5d0b6fe3851b3e467fdafd8887 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sun, 29 Sep 2019 20:22:10 +0200 Subject: feat(Service API): Share `team`, `url` and `hasCustomIcon` with service --- src/models/Service.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/models') diff --git a/src/models/Service.js b/src/models/Service.js index 848a84aa2..023103048 100644 --- a/src/models/Service.js +++ b/src/models/Service.js @@ -134,6 +134,9 @@ export default class Service { id: this.id, spellcheckerLanguage: this.spellcheckerLanguage, isDarkModeEnabled: this.isDarkModeEnabled, + team: this.team, + url: this.url, + hasCustomIcon: this.hasCustomIcon, }; } -- cgit v1.2.3-70-g09d2