diff options
author | 2018-01-02 22:54:17 +0100 | |
---|---|---|
committer | 2018-01-02 22:54:47 +0100 | |
commit | 6b97e42537879be306cd2aaf95dd8aebf8655fcb (patch) | |
tree | 2c2628d507cbf34c953dc97d9a5fe30d8ffcd5db /src/models/Service.js | |
parent | First working draft of icon upload (diff) | |
download | ferdium-app-6b97e42537879be306cd2aaf95dd8aebf8655fcb.tar.gz ferdium-app-6b97e42537879be306cd2aaf95dd8aebf8655fcb.tar.zst ferdium-app-6b97e42537879be306cd2aaf95dd8aebf8655fcb.zip |
feat(Service): Add custom service icon upload
Diffstat (limited to 'src/models/Service.js')
-rw-r--r-- | src/models/Service.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/models/Service.js b/src/models/Service.js index 652d2594c..423510c7d 100644 --- a/src/models/Service.js +++ b/src/models/Service.js | |||
@@ -25,6 +25,7 @@ export default class Service { | |||
25 | @observable isBadgeEnabled = true; | 25 | @observable isBadgeEnabled = true; |
26 | @observable isIndirectMessageBadgeEnabled = true; | 26 | @observable isIndirectMessageBadgeEnabled = true; |
27 | @observable iconUrl = ''; | 27 | @observable iconUrl = ''; |
28 | @observable hasCustomUploadedIcon = false; | ||
28 | @observable hasCrashed = false; | 29 | @observable hasCrashed = false; |
29 | 30 | ||
30 | constructor(data, recipe) { | 31 | constructor(data, recipe) { |
@@ -62,6 +63,8 @@ export default class Service { | |||
62 | 63 | ||
63 | this.isMuted = data.isMuted !== undefined ? data.isMuted : this.isMuted; | 64 | this.isMuted = data.isMuted !== undefined ? data.isMuted : this.isMuted; |
64 | 65 | ||
66 | this.hasCustomUploadedIcon = data.hasCustomIcon !== undefined ? data.hasCustomIcon : this.hasCustomUploadedIcon; | ||
67 | |||
65 | this.recipe = recipe; | 68 | this.recipe = recipe; |
66 | 69 | ||
67 | autorun(() => { | 70 | autorun(() => { |