@@ -107,17 +107,26 @@ export class ShareSnapshot extends React.PureComponent {
107
107
onDismiss : PropTypes . func ,
108
108
readers : PropTypes . arrayOf ( PropTypes . string ) ,
109
109
setIsSharing : PropTypes . func ,
110
+ snapshotRequest : PropTypes . object ,
111
+ dataset : PropTypes . object ,
112
+ filterData : PropTypes . object ,
110
113
} ;
111
114
112
115
setAuthDomain = ( domain ) => {
113
116
this . setState ( { authDomain : domain } ) ;
114
117
} ;
115
118
116
119
saveSnapshot = ( ) => {
117
- const { dispatch } = this . props ;
120
+ const { dispatch, snapshotRequest , dataset , filterData } = this . props ;
118
121
const { authDomain } = this . state ;
119
122
dispatch (
120
123
snapshotCreateDetails ( {
124
+ name : snapshotRequest . name ,
125
+ description : snapshotRequest . description ,
126
+ mode : snapshotRequest . mode ,
127
+ assetName : snapshotRequest . assetName ,
128
+ dataset,
129
+ filterData,
121
130
authDomain,
122
131
} ) ,
123
132
) ;
@@ -172,6 +181,9 @@ export class ShareSnapshot extends React.PureComponent {
172
181
function mapStateToProps ( state ) {
173
182
return {
174
183
readers : state . snapshots . snapshotRequest . readers ,
184
+ snapshotRequest : state . snapshots . snapshotRequest ,
185
+ dataset : state . datasets . dataset ,
186
+ filterData : state . query . filterData ,
175
187
} ;
176
188
}
177
189
0 commit comments