Skip to content

Commit

Permalink
fix: disable channels by super admin config
Browse files Browse the repository at this point in the history
  • Loading branch information
clairton committed Oct 4, 2024
1 parent 4478d67 commit 117a5e8
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions app/javascript/dashboard/components/widgets/ChannelItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,20 @@ export default {
if (key === 'email') {
return this.enabledFeatures.channel_email;
}
if (key === 'notifica_me') {
return this.enabledFeatures.notifica_me;
}
if (key === 'whatsapp') {
return this.enabledFeatures.whatsapp;
}
if (key === 'website') {
return this.enabledFeatures.website;
}
if (key === 'api') {
return this.enabledFeatures.api;
}
return [
'website',
'twilio',
'api',
'whatsapp',
'sms',
'telegram',
'line',
'notifica_me',
].includes(key);
return ['twilio', 'sms', 'telegram', 'line'].includes(key);
},
},
methods: {
Expand Down

0 comments on commit 117a5e8

Please sign in to comment.