Skip to content

Commit c42b2f5

Browse files
committed
Add notification on the flag to disable session deletion
1 parent 12dffc5 commit c42b2f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

javascript/grid-ui/src/components/RunningSessions/RunningSessions.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ function RunningSessions (props) {
301301
} else {
302302
setRowOpen('')
303303
}
304+
} else if (response.status === 403) {
305+
setFeedbackMessage('Session deletion is blocked by configuration')
306+
setFeedbackSeverity('error')
304307
} else {
305308
setFeedbackMessage('Failed to delete session')
306309
setFeedbackSeverity('error')
@@ -686,6 +689,9 @@ function RunningSessions (props) {
686689
<Typography>
687690
Are you sure you want to delete this session? This action cannot be undone.
688691
</Typography>
692+
<Typography variant="body2" color="text.secondary" sx={{ mt: 2, fontStyle: 'italic' }}>
693+
Hint: Set config `--blocked-delete-session` when starting Router/Hub to block deletion of any session.
694+
</Typography>
689695
</DialogContent>
690696
<DialogActions>
691697
<Button

0 commit comments

Comments
 (0)