Skip to content

Commit c4be7ef

Browse files
committed
Update Send To, Event indexes to start from 1
1 parent be9499e commit c4be7ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

jupyter_scheduler/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class RuntimeEnvironment(BaseModel):
4242
compute_types: Optional[List[str]]
4343
default_compute_type: Optional[str] # Should be a member of the compute_types list
4444
utc_only: Optional[bool]
45-
notifications_enabled: bool = False
45+
notifications_enabled: bool = True
4646
notification_events: List[Type[NotificationEvent]] = [e for e in NotificationEvent]
4747

4848
def __str__(self):

src/components/notification-detail.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ export const NotificationDetails: React.FC<INotificationDetailsProps> = ({
4646
{notification.send_to.map((email, idx) => (
4747
<NotificationItem
4848
key={idx}
49-
label={trans.__(`Send To ${idx}`)}
49+
label={trans.__(`Send To ${idx + 1}`)}
5050
value={email}
5151
/>
5252
))}
5353
<FormLabel component="legend">{trans.__('Events')}</FormLabel>
5454
{notification.events.map((event, idx) => (
5555
<NotificationItem
5656
key={idx}
57-
label={trans.__(`Event ${idx}`)}
57+
label={trans.__(`Event ${idx + 1}`)}
5858
value={event}
5959
/>
6060
))}

0 commit comments

Comments
 (0)