Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/components/dialogs/add/NotificationChannelAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
:label="t('Name')"
/>
</v-col>
<v-col cols="12" class="pb-0">
<v-col cols="12" class="pb-0" v-if="editedItem.type !== 'sms_eagle'">
<g-text-field
v-model="editedItem.sender"
show-details
Expand All @@ -40,7 +40,7 @@
<g-select v-model="editedItem.type" show-details show-header :items="types" :label="t('Type')" />
</v-col>
<v-col cols="12" v-if="editedItem.type.includes('twilio')">
<g-checkbox :label="t('UseAPIKey')" v-model="showPlatformId"></g-checkbox>
<g-checkbox :label="t('UseAPIKey')" v-model="showPlatformId" />
</v-col>
<v-col cols="12" class="pb-0" v-if="editedItem.type.includes('twilio') && showPlatformId">
<g-text-field
Expand All @@ -55,7 +55,7 @@

<v-col cols="12" class="pb-0">
<g-text-field
v-if="editedItem.type !== 'sendgrid'"
v-if="editedItem.type !== 'sendgrid' && editedItem.type !== 'sms_eagle'"
v-model="editedItem.apiSid"
show-details
show-header
Expand All @@ -77,7 +77,7 @@
/>
</v-col>
</v-row>
<v-row v-if="['link_mobility_xml', 'smtp'].includes(editedItem.type)">
<v-row v-if="['link_mobility_xml', 'smtp', 'sms_eagle'].includes(editedItem.type)">
<v-col cols="9" class="pb-0">
<g-text-field
v-model="editedItem.host"
Expand Down Expand Up @@ -145,7 +145,8 @@ const types: {title: string; value: NotificationChannelType}[] = [
{title: 'twilio (sms)', value: 'twilio_sms'},
{title: 'twilio (call + sms)', value: 'twilio_call'},
{title: 'link moblity xml (sms)', value: 'link_mobility_xml'},
{title: 'my link (sms)', value: 'my_link'}
{title: 'my link (sms)', value: 'my_link'},
{title: 'sms eagle (sms)', value: 'sms_eagle'}
]

const defaultItem: NotificationChannel = {
Expand All @@ -162,7 +163,8 @@ const labels = {
link_mobility_xml: {token: t('Password'), sid: t('Username')},
twilio_call: {token: t('ApiToken'), sid: t('ApiSid')},
twilio_sms: {token: t('ApiToken'), sid: t('ApiSid')},
my_link: {token: t('ClientSecret'), sid: t('ClientID')}
my_link: {token: t('ClientSecret'), sid: t('ClientID')},
sms_eagle: {token: t('AuthToken')}
}

const verify = computed<'false' | null>({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ const types: NotificationChannelType[] = [
'twilio_sms',
'twilio_call',
'link_mobility_xml',
'my_link'
'my_link',
'sms_eagle'
]
const filter = computed({
get: () => store.state.notificationChannels.filter,
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export const en = {
ShowError: 'Show Error',
ApiToken: 'API Token',
ApiSid: 'API SID',
AuthToken: 'Auth Token',
AccountSID: 'Account SID',
UseAPIKey: 'Use API key',
ClientID: 'Client ID',
Expand Down
1 change: 1 addition & 0 deletions src/plugins/store/types/notificationChannel-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type NotificationChannelType =
| 'twilio_call'
| 'link_mobility_xml'
| 'my_link'
| 'sms_eagle'

export type NotificationChannel = {
customer?: string | null
Expand Down
Loading