diff --git a/src/views/Settings/NotificationSetting.jsx b/src/views/Settings/NotificationSetting.jsx index 264f6ceb..1b823462 100644 --- a/src/views/Settings/NotificationSetting.jsx +++ b/src/views/Settings/NotificationSetting.jsx @@ -208,6 +208,12 @@ const NotificationSetting = () => { return false } break + case '6': + if (chatID === '') { + setError('Access Token is required') + return false + } + break default: break } @@ -672,6 +678,7 @@ const NotificationSetting = () => { + {notificationTarget === '1' && ( <> @@ -729,6 +736,31 @@ const NotificationSetting = () => { /> )} + {notificationTarget === '6' && ( + <> + Access Token + setChatID(e.target.value)} + placeholder='Access Token' + sx={{ + width: '200px', + }} + /> + + You can get your Access Token from{' '} + + Pushbullet Settings + + + + )} {error && ( {error}