File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed
views/tenant/administration Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,12 @@ function CippCodeOffCanvas({
73
73
}
74
74
className = "me-2"
75
75
>
76
- < FontAwesomeIcon icon = "save" className = "me-2" /> Save changes
77
- { templateDetails . isFetching && < CSpinner size = "sm" /> }
76
+ { templateDetails . isFetching ? (
77
+ < CSpinner size = "sm" className = "me-2" />
78
+ ) : (
79
+ < FontAwesomeIcon icon = "save" className = "me-2" />
80
+ ) }
81
+ Save changes
78
82
</ CButton >
79
83
< CopyToClipboard text = { JSON . stringify ( row , null , 2 ) } onCopy = { ( ) => setCopied ( true ) } >
80
84
< CButton disabled = { invalidJSON } >
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ const GraphExplorer = () => {
83
83
const handleManagePreset = ( { values, action, message } ) => {
84
84
var params = {
85
85
action : action ,
86
- values : values ,
86
+ preset : values ,
87
87
}
88
88
ModalService . confirm ( {
89
89
title : 'Confirm' ,
@@ -260,6 +260,15 @@ const GraphExplorer = () => {
260
260
field : PropTypes . node ,
261
261
set : PropTypes . string ,
262
262
}
263
+
264
+ function getPresetProps ( values ) {
265
+ var newvals = Object . assign ( { } , values )
266
+ delete newvals [ 'reportTemplate' ]
267
+ delete newvals [ 'tenantFilter' ]
268
+ delete newvals [ 'IsShared' ]
269
+ return newvals
270
+ }
271
+
263
272
console . log ( graphrequest . data )
264
273
265
274
return (
@@ -301,6 +310,7 @@ const GraphExplorer = () => {
301
310
name = "reportTemplate"
302
311
label = "Select a report preset"
303
312
placeholder = "Select a report"
313
+ retainInput = { false }
304
314
multi = { false }
305
315
values = { presets . map ( ( preset ) => {
306
316
return {
@@ -411,8 +421,7 @@ const GraphExplorer = () => {
411
421
< CippCodeOffCanvas
412
422
title = "Preset Import / Export"
413
423
row = { {
414
- action : 'Copy' ,
415
- values : props . values ,
424
+ preset : getPresetProps ( props . values ) ,
416
425
} }
417
426
state = { ocVisible }
418
427
path = "api/ExecGraphExplorerPreset"
You can’t perform that action at this time.
0 commit comments