aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-23 10:44:32 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-23 10:44:32 +0200
commita3e5b3ccf0d652428a6ef6f533925a2162c35a01 (patch)
treefae84b710b41829c7bcaada89974da5b6d7a8bc6 /app
parent#9 Implement custom service icons (diff)
downloadferdium-server-a3e5b3ccf0d652428a6ef6f533925a2162c35a01.tar.gz
ferdium-server-a3e5b3ccf0d652428a6ef6f533925a2162c35a01.tar.zst
ferdium-server-a3e5b3ccf0d652428a6ef6f533925a2162c35a01.zip
Fix hasCustomIcon setting
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/Http/ServiceController.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/Controllers/Http/ServiceController.js b/app/Controllers/Http/ServiceController.js
index e4e69fe..4a4a8c4 100644
--- a/app/Controllers/Http/ServiceController.js
+++ b/app/Controllers/Http/ServiceController.js
@@ -90,7 +90,7 @@ class ServiceController {
90 90
91 return { 91 return {
92 customRecipe: false, 92 customRecipe: false,
93 hasCustomIcon: false, 93 hasCustomIcon: !!settings.iconId,
94 isBadgeEnabled: true, 94 isBadgeEnabled: true,
95 isDarkModeEnabled: '', 95 isDarkModeEnabled: '',
96 isEnabled: true, 96 isEnabled: true,
@@ -234,7 +234,6 @@ class ServiceController {
234 async icon({ 234 async icon({
235 params, 235 params,
236 response, 236 response,
237 auth
238 }) { 237 }) {
239 const { 238 const {
240 id, 239 id,
@@ -285,7 +284,7 @@ class ServiceController {
285 284
286 return { 285 return {
287 customRecipe: false, 286 customRecipe: false,
288 hasCustomIcon: false, 287 hasCustomIcon: !!settings.iconId,
289 isBadgeEnabled: true, 288 isBadgeEnabled: true,
290 isDarkModeEnabled: '', 289 isDarkModeEnabled: '',
291 isEnabled: true, 290 isEnabled: true,