diff options
Diffstat (limited to 'src/models/Service.js')
-rw-r--r-- | src/models/Service.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/models/Service.js b/src/models/Service.js index 1adb1998b..53285e440 100644 --- a/src/models/Service.js +++ b/src/models/Service.js | |||
@@ -127,9 +127,7 @@ export default class Service { | |||
127 | this.name = ifUndefinedString(data.name, this.name); | 127 | this.name = ifUndefinedString(data.name, this.name); |
128 | this.team = ifUndefinedString(data.team, this.team); | 128 | this.team = ifUndefinedString(data.team, this.team); |
129 | this.customUrl = ifUndefinedString(data.customUrl, this.customUrl); | 129 | this.customUrl = ifUndefinedString(data.customUrl, this.customUrl); |
130 | // this.customIconUrl = ifUndefinedString(data.customIconUrl, this.customIconUrl); | ||
131 | this.iconUrl = ifUndefinedString(data.iconUrl, this.iconUrl); | 130 | this.iconUrl = ifUndefinedString(data.iconUrl, this.iconUrl); |
132 | |||
133 | this.order = ifUndefinedNumber(data.order, this.order); | 131 | this.order = ifUndefinedNumber(data.order, this.order); |
134 | this.isEnabled = ifUndefinedBoolean(data.isEnabled, this.isEnabled); | 132 | this.isEnabled = ifUndefinedBoolean(data.isEnabled, this.isEnabled); |
135 | this.isNotificationEnabled = ifUndefinedBoolean( | 133 | this.isNotificationEnabled = ifUndefinedBoolean( |
@@ -162,7 +160,7 @@ export default class Service { | |||
162 | this.isProgressbarEnabled, | 160 | this.isProgressbarEnabled, |
163 | ); | 161 | ); |
164 | this.hasCustomUploadedIcon = ifUndefinedBoolean( | 162 | this.hasCustomUploadedIcon = ifUndefinedBoolean( |
165 | data.hasCustomIcon, | 163 | data.iconId?.length > 0, |
166 | this.hasCustomUploadedIcon, | 164 | this.hasCustomUploadedIcon, |
167 | ); | 165 | ); |
168 | this.onlyShowFavoritesInUnreadCount = ifUndefinedBoolean( | 166 | this.onlyShowFavoritesInUnreadCount = ifUndefinedBoolean( |