Skip to content
Open
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
32 changes: 32 additions & 0 deletions src/views/Settings/NotificationSetting.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ const NotificationSetting = () => {
return false
}
break
case '6':
if (chatID === '') {
setError('Access Token is required')
return false
}
break
default:
break
}
Expand Down Expand Up @@ -672,6 +678,7 @@ const NotificationSetting = () => {
<Option value='1'>Telegram</Option>
<Option value='2'>Pushover</Option>
<Option value='3'>Webhooks</Option>
<Option value='6'>Pushbullet</Option>
</Select>
{notificationTarget === '1' && (
<>
Expand Down Expand Up @@ -729,6 +736,31 @@ const NotificationSetting = () => {
/>
</>
)}
{notificationTarget === '6' && (
<>
<Typography level='body-sm'>Access Token</Typography>
<Input
value={chatID}
onChange={e => setChatID(e.target.value)}
placeholder='Access Token'
sx={{
width: '200px',
}}
/>
<Typography level='body-xs'>
You can get your Access Token from{' '}
<a
style={{
textDecoration: 'underline',
color: '#0891b2',
}}
href='https://www.pushbullet.com/#settings/account'
>
Pushbullet Settings
</a>
</Typography>
</>
)}
{error && (
<Typography color='warning' level='body-sm'>
{error}
Expand Down