Skip to content

Commit

Permalink
fix: disabled channels on create
Browse files Browse the repository at this point in the history
  • Loading branch information
clairton committed Oct 5, 2024
1 parent a1addae commit 1423d75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/javascript/dashboard/components/widgets/ChannelItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ export default {
return this.enabledFeatures.channel_email;
}
if (key === 'notifica_me') {
return this.enabledFeatures.notifica_me;
return this.enabledFeatures.channel_notifica_me;
}
if (key === 'whatsapp') {
return this.enabledFeatures.whatsapp;
return this.enabledFeatures.channel_whatsapp;
}
if (key === 'website') {
return this.enabledFeatures.website;
return this.enabledFeatures.channel_website;
}
if (key === 'api') {
return this.enabledFeatures.api;
return this.enabledFeatures.channel_api;
}
return ['twilio', 'sms', 'telegram', 'line'].includes(key);
Expand Down

0 comments on commit 1423d75

Please sign in to comment.