This repository was archived by the owner on Jul 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
packages/core/src/webapp/models
plugin-core-support/src/lib/cmds
plugin-kubectl/src/lib/view Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ export class Row {
69
69
70
70
rowCSS ?: string | string [ ]
71
71
72
- onclickSilence ?: boolean
72
+ onclickSilence ?: boolean // opt in/out recording click events when snapshot
73
+
74
+ onclickIdempotent ?: boolean
73
75
74
76
onclickExec ?: 'pexec' | 'qexec'
75
77
Original file line number Diff line number Diff line change @@ -163,7 +163,9 @@ class FlightRecorder {
163
163
? {
164
164
completeEvent : _ . completeEvent ,
165
165
onClicks : _ . completeEvent . response . body
166
- . map ( ( _ , rowIdx ) => ( typeof _ . onclick === 'string' ? { rowIdx, onClick : _ . onclick } : undefined ) )
166
+ . map ( ( _ , rowIdx ) =>
167
+ _ . onclickIdempotent && typeof _ . onclick === 'string' ? { rowIdx, onClick : _ . onclick } : undefined
168
+ )
167
169
. filter ( _ => _ )
168
170
}
169
171
: undefined
Original file line number Diff line number Diff line change @@ -318,6 +318,7 @@ export const formatTable = async <O extends KubeOptions>(
318
318
rowKey,
319
319
fontawesome : idx !== 0 && rows [ 0 ] . key === 'CURRENT' && 'fas fa-check' ,
320
320
onclick : nameColumnIdx === 0 && onclick , // if the first column isn't the NAME column, no onclick; see onclick below
321
+ onclickIdempotent : true ,
321
322
onclickSilence : true ,
322
323
css : firstColumnCSS + ( rows [ 0 ] . key === nameColumn ? ' kui--table-cell-is-name' : '' ) ,
323
324
rowCSS,
You can’t perform that action at this time.
0 commit comments