@@ -102,22 +102,31 @@ export class ShareSnapshot extends React.PureComponent {
102
102
103
103
static propTypes = {
104
104
classes : PropTypes . object ,
105
+ dataset : PropTypes . object ,
105
106
dispatch : PropTypes . func ,
107
+ filterData : PropTypes . object ,
106
108
isModal : PropTypes . bool ,
107
109
onDismiss : PropTypes . func ,
108
110
readers : PropTypes . arrayOf ( PropTypes . string ) ,
109
111
setIsSharing : PropTypes . func ,
112
+ snapshotRequest : 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