aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-17 01:08:22 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-17 01:08:22 -0400
commit33368db10981d3dcb5d1592b63a5e343a424363c (patch)
tree259066dd2a5c82f1e2d8b5160ef0c41ad85388de /src
parent8e42e59a80fbb4009e6d871d998793ffa597802a (diff)
parentdfe89b499f525f1e49c8791059c5b2215364f7bb (diff)
downloaddonetick-frontend-33368db10981d3dcb5d1592b63a5e343a424363c.tar.gz
donetick-frontend-33368db10981d3dcb5d1592b63a5e343a424363c.tar.bz2
donetick-frontend-33368db10981d3dcb5d1592b63a5e343a424363c.zip
Merge branch 'dev'
Diffstat (limited to 'src')
-rw-r--r--src/views/ChoreEdit/ChoreEdit.jsx61
1 files changed, 60 insertions, 1 deletions
diff --git a/src/views/ChoreEdit/ChoreEdit.jsx b/src/views/ChoreEdit/ChoreEdit.jsx
index 968da24..9a61d9d 100644
--- a/src/views/ChoreEdit/ChoreEdit.jsx
+++ b/src/views/ChoreEdit/ChoreEdit.jsx
@@ -595,7 +595,7 @@ const ChoreEdit = () => {
opacity: !isPlusAccount(userProfile) ? 0.5 : 1,
}}
>
- Receive notifications for this task
+ When should receive notifications for this task
</FormHelperText>
</FormControl>
</Box>
@@ -658,6 +658,65 @@ const ChoreEdit = () => {
<FormHelperText>{item.description}</FormHelperText>
</FormControl>
))}
+
+ <Typography level='h5'>
+ What things should trigger the notification?
+ </Typography>
+ <FormControl>
+ <Checkbox
+ overlay
+ disabled={true}
+ checked={true}
+ label='All Assignees'
+ />
+ <FormHelperText>Notify all assignees</FormHelperText>
+ </FormControl>
+
+ <FormControl>
+ <Checkbox
+ overlay
+ onClick={() => {
+ if (notificationMetadata['circleGroup']) {
+ delete notificationMetadata['circleGroupID']
+ }
+
+ setNotificationMetadata({
+ ...notificationMetadata,
+ ['circleGroup']: !notificationMetadata['circleGroup'],
+ })
+ }}
+ checked={
+ notificationMetadata
+ ? notificationMetadata['circleGroup']
+ : false
+ }
+ label='Specific Group'
+ />
+ <FormHelperText>Notify a specific group</FormHelperText>
+ </FormControl>
+
+ {notificationMetadata['circleGroup'] && (
+ <Box
+ sx={{
+ mt: 0,
+ ml: 4,
+ }}
+ >
+ <Typography level='body-sm'>Telegram Group ID:</Typography>
+
+ <Input
+ type='number'
+ value={notificationMetadata['circleGroupID']}
+ placeholder='Telegram Group ID'
+ onChange={e => {
+ setNotificationMetadata({
+ ...notificationMetadata,
+ ['circleGroupID']: parseInt(e.target.value),
+ })
+ }}
+ />
+ </Box>
+ )}
</Card>
</Box>
)}